I hereby claim:
- I am michaelhood on github.
- I am mh (https://keybase.io/mh) on keybase.
- I have the public key with fingerprint A60F 1C10 7E4B 4306 CE35 51E2 B3DF 3143 19DC B2E0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
'''pass_socket.py | |
Written September 14, 2012 | |
Released into the public domain. | |
Works on Python 2.6, 2.7, and may need minor changes for 3+. | |
''' | |
import multiprocessing |
# ssh $(ec2ip i-a1b2c3d) | |
function ec2ip() { if [ "$#" -gt 0 ]; then ip=$(ec2din --show-empty-fields -H $1 | grep "^INST" | cut -f17); echo $ip; fi } | |
function ec2pip() { if [ "$#" -gt 0 ]; then ip=$(ec2din --show-empty-fields -H $1 | grep "^INST" | cut -f18); echo $ip; fi } | |
function ec2host() { if [ "$#" -gt 0 ]; then ip=$(ec2din --show-empty-fields -H $1 | grep "^INST" | cut -f4); echo $ip; fi } | |
# ec2ssh i-a1b2c3d | |
function ec2ssh() { if [ "$#" -gt 0 ]; then ip=$(ec2din --show-empty-fields -H $1 | grep "^INST" | cut -f4); echo $ip; ssh $ip; fi } |
mh@mbp:~% sudo dtruss -f sudo -u\#$UID whoami 2>/dev/null | |
mh | |
mh@mbp:~% sudo dtruss -f -t fakesyscall sudo -u\#$UID touch / | |
PID/THRD SYSCALL(args) = return | |
28082/0xad253: fork() = 0 0 | |
touch: setting times of ‘/’: Permission denied | |
mh@mbp:~% # note that i only used these methods to hide output | |
mh@mbp:~% # to keep the demo short. dtruss is functional. |
for c in $(curl -su michaelhood:$ppp https://api.github.com/repos/github/developer.github.com/pulls/183/commits | fgrep "git/commits" | sed "s/\/git\//\//g" | awk '{print $NF;}' | tr -d \",); do echo "\n### START: $c ###\n\n"; curl -u michaelhood:$ppp -H "Accept: application/vnd.github.beta.diff" $c; done |
/* | |
MIT: https://raw.github.com/github/hubot/1455b62e5b6daffeacb7472db83ccf6502396bea/LICENSE.md | |
refs: | |
http://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/HTML-canvas-guide/SettingUptheCanvas/SettingUptheCanvas.html | |
http://www.html5rocks.com/en/tutorials/canvas/hidpi/ | |
https://code.google.com/p/chromium/issues/detail?id=127852 (WONTFIX) | |
*/ | |
(function(doc) { |
#!/usr/bin/env bash | |
echo "# sup markdown" > sup.md | |
cat sup.md | { _t=$(mktemp --suffix=\.html); curl -s -H "Content-type: text/plain" -d @/dev/stdin https://api.github.com/markdown/raw > $_t ; open $_t ; rm -f $_t; } |
(function(doc) { | |
$("#repo_details div.url-box ul.native-clones li a span.mini-icon-apple"). | |
parent(). | |
attr('href', function(i,v) { return v.replace(/https:\/\//, "git://"); }); | |
}(document)); |