Skip to content

Instantly share code, notes, and snippets.

View jeffreysblake's full-sized avatar

Jeff Blake jeffreysblake

View GitHub Profile
@jeffreysblake
jeffreysblake / StandardKeyBinding.dict.dump.with.notes.txt
Created February 11, 2025 08:53 — forked from hym3242/StandardKeyBinding.dict.dump.with.notes.txt
Dump of /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict on macOS Ventura 13.4, plus some notes
$ # plz forgive this dumb method of visualization.
$ cp /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict .
$ plutil -convert xml1 StandardKeyBinding.dict
$ plutil -p StandardKeyBinding.dict | unicode-vis | cat -v | tr '\t' '+'
{
"^C" => "insertNewline:"
"^H" => "deleteBackward:"
"^Y" => "insertBacktab:" //shift+tab
"^[" => "cancelOperation:"
"^?" => "deleteBackward:"
@jeffreysblake
jeffreysblake / DefaultKeyBinding.dict
Created February 11, 2025 06:55 — forked from trusktr/DefaultKeyBinding.dict
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@jeffreysblake
jeffreysblake / miniconda_on_rpi.md
Created October 7, 2024 11:50 — forked from simoncos/miniconda_on_rpi.md
Install Miniconda 3 on Raspberry Pi
@jeffreysblake
jeffreysblake / loggly.service
Created August 5, 2024 09:54 — forked from ghostbar/loggly.service
loggly.service
[Unit]
Description=Loggly Forwarder
[Service]
ExecStart=/bin/sh -c "journalctl -o short -f | awk '{ print \"\<34\>1\", $0; fflush(); }' | awk '{ print $0, \"[your-consumer-token-from-loggly@41058 tag='deis']\" }' | ncat --ssl logs-01.loggly.com 6514"
[Install]
WantedBy=multi-user.target
[X-Fleet]