Skip to content

Instantly share code, notes, and snippets.

View colinvh's full-sized avatar

Colin von Heuring colinvh

View GitHub Profile
@colinvh
colinvh / .inputrc
Created September 30, 2012 00:50 — forked from gregorynicholas/.inputrc
OSX .inputrc to make terminal even more better.
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
@colinvh
colinvh / fabp.sh
Last active August 29, 2015 13:56
fabp - supply Fabric with a password
#!/bin/bash
fab -p "`read -s -p Password: ; echo 1>&2 ; echo $REPLY`" "$@"
@colinvh
colinvh / gist:13114feacfde2e6af791
Created September 24, 2014 21:46
arroz con tocineta y tocineta y tocineta y jamón
Since I was in Pleasantville, I figured I would try the local arroz con tocineta y tocineta y tocineta y jamón relleno with horseradish.

A

for (init; check; update) {
	...
}

B

init;
while(check) {
@colinvh
colinvh / carc.md
Last active August 29, 2015 14:17
>> CRITICAL <<
!! ERROR !!
## WARNING ##
[[ INFO ]]
:: DEBUG ::
#!/usr/bin/env python
from __future__ import print_function
import random
def main():
return ''.join((chr(c + 97) for c in generate()))
def generate():

Encoding Clickwise as ASCII

For dot glyphs, use a 1-indexed Base64 alphabet (as there is no blank dot glyph) to encode the dots; the bottom dot position represents the least significant bit:

         1         2         3         4         5         6
123456789012345678901234567890123456789012345678901234567890123
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+
@colinvh
colinvh / aws.md
Last active May 24, 2024 23:35
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@colinvh
colinvh / seven-table.md
Created September 9, 2015 20:09
7-segment display tables
Dec 7-Seg
0 126
1 48
2 109
3 121
4 51
5 91
6 95
7 112