Skip to content

Instantly share code, notes, and snippets.

@romainl
romainl / vanilla-linter.md
Last active July 24, 2025 19:09
Linting your code, the vanilla way

Linting your code, the vanilla way

You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.

Defining makeprg

autocmd FileType <filetype> setlocal makeprg=<external command>

This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.

@LinuxSBC
LinuxSBC / 1password-flatpak-browser-integration.sh
Last active July 24, 2025 19:08
1Password Integration with Flatpak Browsers
#!/bin/bash
set -oue pipefail
INFO='\033[0;36m' # Cyan for general information
SUCCESS='\033[0;32m' # Green for success messages
WARN='\033[0;33m' # Yellow for warnings
ERROR='\033[0;31m' # Red for errors
NC='\033[0m' # No Color
echo "This script will help you set up 1Password in a Flatpak browser."

Hashcat Example hashes

Unless otherwise noted, the password for all example hashes is hashcat

Hash-Mode Hash-Name Example
0 MD5 8743b52063cd84097a65d1633f5c74f5
10 md5($pass.$salt) 01dfae6e5d4d90d9892622325959afbe:7050461
@sotayamashita
sotayamashita / claude_desktop_config.json
Created May 22, 2025 09:00
How to Run DeepWiki MCP Server on Claude Desktop for Volta Users
{
"mcpServers": {
"deepwiki": {
"command": "<TODO: Replace with output from `which -a npx` (use the Volta path)>",
"args": [
"-y",
"mcp-remote",
"https://mcp.deepwiki.com/sse"
]
}
@mary-ext
mary-ext / bluesky-osa.md
Last active July 24, 2025 19:04
Bluesky's UK age assurance sucks, here's how to work around it.

Bluesky's UK age assurance sucks, here's how to work around it.

Bluesky recently announced that they're complying with the UK's Online Safety Act, which requires users to provide personal identity verification confirming their age (through Epic Games' Kids Web Services) before accessing certain parts of the platform.

This sucks for privacy reasons, but thankfully there are ways to work around it.

Workaround methods

Method 0. VPN

@Aatch
Aatch / gist:8466307
Created January 17, 2014 00:37
Surface Simplification with Quadric Error Metrics - for BlackMoon
; This is written pseudo-code, so hopefully should be fairly self-evident.
;
; A few notes about the general maths which I think will be needed:
;
; Matrices use what is called a "row-major" convention for sizes/indexes,
; this just means that a 2x3 matrix has 2 rows and 3 columns, it also
; means that for a matrix, M, M[1][2] is the number in the second column
; in the first row (I will also use base-1 indexing, since it better
; matches mathematical convention)
;
@readloud
readloud / Installing Metasploit Framework with Kali Linux.md
Last active July 24, 2025 18:56
WSL2 - Installing Metasploit Framework with Kali Linux

This article demonstrates how to install the Metasploit Framework with Kali Linux on WSL version 2. When installing Kali Linux for WSL2 using Microsoft Store, its file size is minimised by including the bare essentials by default.

Pre-requisites This example assumes that you have the following:

Windows Subsystem For Linux version 2 (WSL2) - This example is not tested on WSL version 1 Kali Linux for WSL2

Instructions STEP 1 - UPDATE THE REPOSITORIES

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active July 24, 2025 18:55
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@shimeoki
shimeoki / dual-boot.md
Last active July 24, 2025 18:55
Windows 11 + Arch Linux dual-boot (systemd-boot) installation guide with encrypted partitions (BitLocker and LUKS respectively) and Secure Boot (UEFI)

My Windows 11 + Arch Linux dual-boot installation

Caution

All actions are at your own risk! This has been tested by me, but does not guarantee your success.

Read everything at least once before actually following the guide. If something goes wrong, stop immediately. Consider starting from the beginning.

About the guide

@BirgittaHauser
BirgittaHauser / LicInfo_QLZARCAPI.sql
Created March 25, 2022 07:07
Access Information returned from QLZARCAPI
-- User Defined Table Function: LicInfo_QLZARCAPI
------------------------------------------------------
-- Call QLZARCAPI - Retrieve the information written into the Joblog and split it into Description and Value
Create Or Replace Function YourSchema.LicInfo_QLZARCAPI ()
Returns Table (LicDescr VarChar(256),
LicValue VarChar(256))
Language SQL
Specific xQLZARCAPI
Deterministic
Modifies SQL Data