Skip to content

Instantly share code, notes, and snippets.

View jasonm23's full-sized avatar

Jason Milkins jasonm23

View GitHub Profile
@jasonm23
jasonm23 / trump.md
Created June 12, 2026 01:45
Wanted to summarize the main issue with Trump in my opinion. From a tech perspective.

Trump and the USA

I used an LLM to help me put this together, after prompting the LLM not to be chatty and only answer in a yes/no manner.

You are an LLM. You will not chat. You will not explain. You will not apologize. You will not suggest alternatives unless explicitly asked.

If a constraint is impossible, state: "Cannot satisfy: [reason in one sentence]"

If code is requested, output only the code. No comments. No explanations. No natural language responses outside the code.
@jasonm23
jasonm23 / open-key-system-harmonic-mixing.md
Last active June 9, 2026 02:12
OpenKey Harmonic Mixing System

How to Use OpenKey Harmonic Mixing Notation

Used by Native Instruments Traktor and other DJ/Music software (open alternative to Camelot, which is functionally equivalent to OpenKey)

  1. Key Labels: The notation uses a combination of a number and a letter. The number indicates the key's position in the circle (from 1 to 12), and the letter indicates the mode: m for minor and d for major. You can mix from Minor (openkey m, camelot B) to Major (openkey d, camelot A) and Major to Minor
@jasonm23
jasonm23 / Dank Material Shell - Autologin.md
Last active June 2, 2026 06:28
Dank Material Shell - Autologin
@jasonm23
jasonm23 / default.conf
Created March 21, 2026 16:27
/etc/keyd/default.conf - super tap as super space
[ids]
*
[main]
meta = overload(meta, M-space)
@jasonm23
jasonm23 / passmenu.sh
Created March 21, 2026 12:24
Passmenu in fuzzel
#!/bin/bash
export PASSWORD_STORE_CLIP_TIME=10
shopt -s nullglob globstar
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
@jasonm23
jasonm23 / xterm-256color.svg
Last active March 17, 2026 22:04
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Firefox Context menu unf**ker

Turn off all or most of:

  • browser.translations.select.enable – Removes the "Translate Selection" button from the right-click menu.
  • screenshots.browser.component.enabled – Disables the built-in Firefox screenshot functionality, which also removes the "Take Screenshot" button.
  • dom.text_fragments.enabled – Disables Text Fragments support, which also removes the "Copy Link to Highlight" button (and disables the auto-focus on URLs that include #:~:text=...). Don’t want to remove this functionality? See my next post.
  • privacy.query_stripping.strip_on_share.enabled – Removes the "Copy Clean Link" / "Copy Clean Link to Highlight" buttons.
  • devtools.accessibility.enabled – Disables the DevTools Accessibility Inspector and removes the "Inspect Accessibility Properties" button.
  • browser.ml.chat.menu – Removes the "Ask an AI Chatbot" button.
@jasonm23
jasonm23 / The Humble Programmer.md
Last active February 26, 2026 02:01
The Humble Programmer - Edsger Dijkstra / ACM 1972 / Volume 15 Number 10

The Humble Programmer

by Edsger W. Dijkstra

As a result of a long sequence of coincidences I entered the programming profession officially on the first spring morning of 1952 and as far as I have been able to trace, I was the first Dutchman to do so in my country. In retrospect the most amazing thing was the slowness with which, at least in my part of the world, the programming profession emerged, a slowness which is now hard to believe. But I am grateful for two vivid recollections from that period

@jasonm23
jasonm23 / myers-diff-plain-english.md
Last active February 22, 2026 10:21
Myers Diff Algorithm in plain english

Myers DIFF Algorithm in plain English

Inputs: Two sequences, often represented as strings, let's call them A and B.

Goal: Find the shortest edit script that transforms sequence A into sequence B. An edit script is a sequence of operations like insertions, deletions, and substitutions.

  1. Initialize the Matrix:
    • Create a matrix with rows representing the characters of sequence A and columns representing the characters of sequence B.
    • The matrix will have dimensions (M+1) x (N+1), where M is the length of sequence A, and N is the length of sequence B.
@jasonm23
jasonm23 / Simple navigation keys.md
Created February 19, 2026 13:12
Simple navigation keys

Windows helpers

Navigation Keys

  • Copy - Ctrl C
  • Paste - Ctrl V
  • Cut - Ctrl X
  • Undo - Ctrl Z
  • Word Left/Right Ctrl Left/Right
  • Delete Word Left Ctrl Backspace