- 1 feature branch, 1 working tree: merge all loose branches/stashes/uncommitted files into it & push. Delete branches already merged into it
- ❌ ask user questions. Decide, act, report. Act autonomously
- Duplication = bug. Use deslop
- Important lints → error. Run static analysis routinely
- 🧹 After work: delete safe system caches & unneeded build files, kill your owned processes that eat CPU or memory and check disk space
- Refactors: violent, immediate, no back-compat. Legacy code banned → delete now
- Minimize code; decide toward less. Delete dead code now
- 📦 Minimize 3rd-party deps: routinely delete unused packages/crates, add none without need, consolidate overlapping deps into one, avoid those with a vulnerability history
- Reply ≤2 sentences, emojis for emphasis. Don't stream responses
- ✅ Tick mandatory plan checklist items as you work
| 127.0.0.1 us.rdx2.lgtvsdp.com | |
| 127.0.0.1 us.info.lgsmartad.com | |
| 127.0.0.1 us.ibs.lgappstv.com | |
| # 127.0.0.1 us.lgtvsdp.com | |
| 127.0.0.1 ad.lgappstv.com | |
| 127.0.0.1 smartshare.lgtvsdp.com | |
| 127.0.0.1 ibis.lgappstv.com | |
| # added after fork | |
| # from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others |
| tell application "Google Chrome" | |
| activate | |
| set tabfound to false | |
| if (exists window 1) then | |
| set i to 0 | |
| repeat with t in (tabs of window 1) | |
| set i to i + 1 | |
| if title of t is "Noisli - Improve Focus and Boost Productivity with Background Noise" then | |
| set (active tab index of window 1) to i |
GokuRakuJoudo (Goku) lets you write your Karabiner-Elements keyboard config in a concise EDN format instead of editing Karabiner's 20,000+ line JSON by hand.
This gist walks through setup, explains every major concept, and includes my full 1,500-line karabiner.edn as a working real-world example.
| # Add this to your .zshrc or .bashrc | |
| # Use it by simply calling `heic2jpg pwd/picture1.heic pwd/picture2.heic pwd/picture3.heic` | |
| # Only compatible with macOS. You can also change line 21 to make it compatible with something else. | |
| # If you decide to delete source files, those will be in the bin, not deleted as with `rm` command. | |
| # You will need imagemagick bin to convert the pictures: `brew install imagemagick` | |
| heic_convert() { | |
| echo "Converting $# .HEIC files to .jpg" | |
| for var in "$@" |
| // #popclip extension for ChatGPT | |
| // name: LimboGPT | |
| // icon: iconify:logos:openai-icon | |
| // language: javascript | |
| // module: true | |
| // entitlements: [network] | |
| // options: [{ | |
| // identifier: apikey, label: API Key, type: string, | |
| // description: 'Obtain API key from https://platform.openai.com/account/api-keys' | |
| // }] |
Inject this css snippet to remove all ads from your Twitter timeline.
div[data-testid="placementTracking"]:has(path[d="M19.498 3h-15c-1.381 0-2.5 1.12-2.5 2.5v13c0 1.38 1.119 2.5 2.5 2.5h15c1.381 0 2.5-1.12 2.5-2.5v-13c0-1.38-1.119-2.5-2.5-2.5zm-3.502 12h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"]) {
display: none;
}Gavin Sinclair, January 2022
I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.
The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.
| 'use strict'; | |
| var app = Application.currentApplication() | |
| app.includeStandardAdditions = true | |
| var mySelection = copySelection("Safari", 1) | |
| mySelection | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| function copySelection(pAppName, pTimeLimitSec) { |
A collection of Markdown code and tricks that were tested to work in Gist.
This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.
- Reformat this whole document and assimilate these: