Skip to content

Instantly share code, notes, and snippets.

@wesgarrison
wesgarrison / gist:d1b74e4b6ab6791e9a3d
Created April 30, 2014 15:15
Make pull request from an issue
# template
curl --user "<gh-username>" \
--request POST \
--data '{"issue": "<issue-number>", "head": "<owner>:<branch>", "base": "master"}' \
https://api.github.com/repos/<owner>/<repo>/pulls
# example
curl --user "wesgarrison" \
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
@wesgarrison
wesgarrison / 1_in.txt
Created October 18, 2014 04:05
skeletons
-
Rails.cache.fetch ('nil thing') { nil }
Cache read: nil thing
Cache generate: nil thing
Cache write: nil thing
@wesgarrison
wesgarrison / gist:90a0d8ab24b2203c4282
Created May 13, 2015 20:12
md5 mDNSResponder and mDNSResponderHelper
➜ code md5 /usr/sbin/mDNSResponder
MD5 (/usr/sbin/mDNSResponder) = f09fd4f1a256ba622356a9fc0579a338
➜ code md5 /usr/sbin/mDNSResponderHelper
MD5 (/usr/sbin/mDNSResponderHelper) = 30646c984e812e157a352d24df125033
[branch "master"]
remote = origin
merge = refs/heads/master
function gc {
if [ -z "$1" ]; then
git checkout master
else
git checkout $1
fi
}