I hereby claim:
- I am ys on github.
- I am yannick (https://keybase.io/yannick) on keybase.
- I have a public key whose fingerprint is D6C7 F71B ABC0 3E2A 1F6F C2FE BCA4 A202 5A48 1A75
To claim this, I am signing this object:
//USAGE: _hk <alternate netrc file extension> <hk parameters> | |
function _hk { | |
altfile=$1 | |
shift; | |
mv ~/.netrc ~/.netrc.bckp | |
mv ~/.netrc.$altfile ~/.netrc | |
hk $@ | |
mv ~/.netrc ~/.netrc.$altfile | |
mv ~/.netrc.bckp ~/.netrc | |
} |
#! /usr/bin/env ruby | |
origin_url = `git config --get remote.origin.url` | |
repo = origin_url.split(':')[1].split('.')[0] | |
`open https://github.com/#{repo}` |
CREATE TABLE stats (id serial primary key, created_at timestamptz default (now()), data json); | |
create index ON stats (created_at); | |
-- Function that will delete old rows to keep the size of the set to 10_000 rows | |
CREATE OR REPLACE FUNCTION prune_stats_table() | |
RETURNS trigger AS | |
$BODY$ | |
BEGIN | |
DELETE FROM stats WHERE id < (SELECT id FROM stats ORDER BY id DESC LIMIT 1 OFFSET 9999); | |
return null; |
curl -vvv -X POST -H 'Authorization: Token TOKEN' -H 'Accept: application/vnd.github.cannonball-preview+json' -H 'Content-Type: application/json' -d '{"ref":"master", "payload":{"heroku_app":"app"}}' https://api.github.com/repos/ys/repo/deployments | |
curl -vvv -X GET -H 'Authorization: Token TOKEN' -H 'Accept: application/vnd.github.cannonball-preview+json' https://api.github.com/repos/ys/repo/deployments |
I hereby claim:
To claim this, I am signing this object:
on alfred_script(q) | |
set theText to q | |
tell application "OmniFocus" | |
parse tasks into default document with transport text theText | |
end tell | |
end alfred_script |
#! /usr/bin/env ruby | |
issue= ARGV.shift | |
current_branch = `git rev-parse --abbrev-ref HEAD` | |
origin_url = `git config --get remote.origin.url` | |
repo = origin_url.split(':')[1].split('.')[0] | |
command = "hub pull-request" | |
command = command + " -i #{issue}" if issue | |
command = command + " -b #{repo}:master -h #{repo}:#{current_branch}" | |
system command |
more Gemfile | grep ^ruby | awk '{gsub("\"","");gsub("\x27",""); print $2}' |
source 'https://rubygems.org' | |
gem 'puma' | |
gem 'rack' |
class Object | |
def safe_tap(&block) | |
tap do |o| | |
unless o.nil? | |
block.call(o) | |
end | |
end | |
end | |
end |