Skip to content

Instantly share code, notes, and snippets.

View jlnr's full-sized avatar

Julian Raschke jlnr

View GitHub Profile
@jlnr
jlnr / adler32forge.rb
Created June 7, 2026 08:04
Adler32 collision generator
# If you ever need to replace a large blob of data while keeping its adler32 checksum intact,
# this quick one-off script should be able to generate a short piece of data with the same checkum.
require "adler32"
require "base64"
class Adler32Checksum
include Comparable
attr_reader :adler32
@jlnr
jlnr / caps_lock_programming.json
Last active August 13, 2018 19:08
My Karabiner settings to make Caps Lock useful on a German keyboard (drop into .config/karabiner/assets/complex_modifications/)
{
"title": "My Karabiner settings to make Caps Lock useful on a German keyboard",
"rules": [{
"description": "Map Caps Lock to {, and Shift-Caps Lock to }",
"manipulators": [{
"type": "basic",
"from": { "key_code": "caps_lock", "modifiers": {} },
"to": [{ "key_code": "8", "modifiers": ["left_option"] }]
},
{