I hereby claim:
- I am matthutchinson on github.
- I am matthutchinson (https://keybase.io/matthutchinson) on keybase.
- I have a public key whose fingerprint is 2F6D 6D3C 53D6 659F 4674 4021 DDC0 B52C D778 C2B8
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
class Card | |
attr_accessor :rank, :suit | |
def initialize(rank, suit) | |
self.rank = rank | |
self.suit = suit | |
end |
# brew install sox | |
echo '(play -q -n synth sine F2 sine C3 remix - fade 0 4 .1 norm -4 bend 0.5,2399,2 fade 0 4.0 0.5 &)' >> ~/.bash_profile | |
# via https://twitter.com/climagic/status/467322823631831040 |
#!/bin/sh -x | |
# no python3 (pip3) or curl? use this | |
# brew install python3 curl | |
# https://github.com/flyingrub/scdl | |
# pip3 install scdl | |
curl -s http://poolsideapi2.herokuapp.com/tracks?p=2 | grep -o '"scUrl": ".*",$' | sed -E 's/("scUrl": "|",.*$)//g' | xargs -I 'url' scdl -l url --hidewarnings |
# rbenv shell helper patch | |
module Babushka | |
module ShellHelpers | |
# Run +cmd+ via #shell, raising an exception if it doesn't exit | |
# with success. | |
def shell! *cmd, &block | |
opts = cmd.extract_options! | |
cmd = cmd.first if cmd.map(&:class) == [Array] |
I hereby claim:
To claim this, I am signing this object:
# upstart for bluepill daemon and store app | |
# use with config/bluepill.pill | |
description "pmFAQtory store" | |
start on runlevel [2] | |
stop on runlevel [016] | |
exec su -c "$(tr "\n" " " < /etc/environment) bluepill load /var/www/pmfaqtory-store/current/config/bluepill.pill" |
# https://istlsfastyet.com | |
# https://github.com/igrigorik/istlsfastyet.com/blob/master/nginx.conf | |
# https://github.com/matthutchinson/matthutchinson.github.com/wiki/NGINX | |
# nginx (1.5.10) with resumption, OCSP stapling, 1400 byte TLS records, forward secrecy, NPN + SPDY/3.1 | |
upstream unicorn { | |
server unix:/var/www/pmfaqtory-store/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
# redirect all non ssl traffic to ssl |
#!/bin/bash | |
COMMAND="git br | grep '$1' | sed 's/\* //'" | |
git co $(eval $COMMAND) |
default: &default | |
adapter: mysql2 | |
encoding: utf8 | |
username: root | |
password: | |
reconnect: true | |
encoding: utf8 | |
development: | |
<<: *default |