Skip to content

Instantly share code, notes, and snippets.

View psi's full-sized avatar

JD Harrington psi

  • Philadelphia, PA
View GitHub Profile
@psi
psi / -
Created April 29, 2014 21:02
Colleagues don't let colleagues code sober.
===========
= Spirits =
===========
- Santa Teresa 1796 rum
- Black Maple Hill bourbon
- Bruichladdich Rocks scotch
- Templeton rye
- Whistlepig Straight Rye Whiskey
@psi
psi / -
Created March 24, 2014 16:03
~/src/se/app [SE-85-upgrade-braintree] % whois kevin.li
whois: This information is subject to an Acceptable Use Policy.
See http://www.nic.ch/terms/aup.html
Domain name:
kevin.li
Holder of domain name:
Moser Kevin
#!/bin/bash
exec 2>&1
function is_unicorn_alive {
set +e
if [ -n $1 ] && kill -0 $1 >/dev/null 2>&1; then
echo "yes"
fi
set -e
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
MYSQL_PASSWORD = 'XXXXXXXXX'
unless ARGV[1] == 'dev'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'digital_ocean'
end
@psi
psi / gist:7897563
Last active December 30, 2015 22:59
{
"CensusInfo"=>nil,
"CityName"=>"Brooklyn",
"Country"=>"USA",
"County"=>"KINGS",
"CountyNum"=>"047",
"FinanceNumber"=>"350995",
"FirmOrRecipient"=>"",
"GeoLocationInfo"=>nil,
"IntelligentMailBarcodeKey"=>"61sq0ZTrYYAO1DYL7I5DOw==",
~/src/se/app/vendor/plugins/master_slave_adapter [master] ⚡ % ruby test/master_slave_adapter_test.rb
oLoaded suite test/master_slave_adapter_test
Started
^R
FFF.F.
Finished in 0.092515 seconds.
1) Failure:
test_insert(MasterSlaveAdapterTest) [test/master_slave_adapter_test.rb:177]:
<ActiveRecord::RecordNotFound> exception expected but none was thrown.
Host github.com
StrictHostKeyChecking no
VerifyHostKeyDNS yes
module Whatever
module Listhub
class ListhubSource
...
end
end
end
module Listhub
@psi
psi / db.rake
Last active December 18, 2015 10:39
# Lhm 1.3.0 includes an `Lhm.cleanup` method that handles table cleanup, so
# we can just wrap that functionality here.
#
# Check the README at: https://github.com/soundcloud/large-hadron-migrator
namespace :db do
namespace :lhm do
desc "Show tables created by LHM migrations"
task :show => :environment do
Lhm.cleanup
stuff