Skip to content

Instantly share code, notes, and snippets.

@kevinr
kevinr / DefaultKeyBinding.dict
Last active September 26, 2020 10:18
DefaultKeyBinding.dict for use in the Mac OS X Compose key method from github.com/gnarf/osx-compose-key with the full X.org Compose key dictionary
{
/* The Compose Key: § - add this to ~/Library/KeyBindings (create it if necessary), use Karabiner Elements to bind 'right_option' to 'non_us_backslash', see https://imgur.com/a/s8MMe8a, then log out and log back in
Reference:
http://github.com/gnarf/osx-compose-key
http://lolengine.net/blog/2012/06/17/compose-key-on-os-x
http://heisencoder.net/2008/04/fixing-up-mac-key-bindings-for-windows.html
https://gist.github.com/gnarf/0d29c05b189a51894399
http://osxnotes.net/keybindings.html
*/
"§" = {
@kevinr
kevinr / jane kim sf parking minimum removal.md
Created November 16, 2018 02:25
Letter to Supervisor Kim & Director Reiskin Concerning Proposal to Remove SF Zoned Parking Minimums Citywide

Hey Supervisor Kim & Director Reiskin,

Obviously, thank you to Supervisor Kim for putting forward this proposal! This is the kind of action our city needs, for health & safety reasons, environmental reasons, social justice reasons, and reasons of pure human happiness.

I lived in Boston for the last 14 years until moving out to SF last year, and in that time I never owned a car. I never needed or wanted one---it would frankly have been a real pain to own a car, not least when you needed to shovel it out after a blizzard, but that was fine because car ownership wasn't necessary. Everything I needed was in walking or biking distance, our streets were narrow and slow, and car parking was scarce. (Bike parking, on the other hand, was easy to find.)

It wasn't perfect, and there were still some accidents, but it was better, and I was happier for it. I got more exercise, I got more sunlight, I emitted a LOT less CO2, and I interacted more with my neighbors. Even now living on the other coast, practically every

@kevinr
kevinr / adblockers.eml
Created January 8, 2018 00:40
Subject: Ad blockers
Here are the two ad blockers I use and recommend:
Adblock Plus:
https://chrome.google.com/webstore/detail/adblock-plus/cfhdojbkjhnklbpkdaibdccddilifddb?hl=en-US
uBlock Origin:
https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en-US
(Be aware that there are scammy ad-blockers with very similar names. These are the trustworthy ones.)

Keybase proof

I hereby claim:

  • I am kevinr on github.
  • I am kevinr (https://keybase.io/kevinr) on keybase.
  • I have a public key whose fingerprint is A218 9FAF 2BF0 501A AF6A 3C41 D8BF BBA3 A7EE 0B71

To claim this, I am signing this object:

@kevinr
kevinr / barnowl-filteredit.pl
Created December 29, 2010 06:04
first pass at BarnOwl filteredit command
#!/usr/bin/env perl
use warnings;
use strict;
sub cmd_filteredit {
my $cmd = shift;
my $filtername = shift;
my $filter = BarnOwl::getfilter($filtername);