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:
#!/bin/bash | |
COMMAND="git br | grep '$1' | sed 's/\* //'" | |
git co $(eval $COMMAND) |
# 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 |
# 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" |
I hereby claim:
To claim this, I am signing this object:
# 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] |
# 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 |
# subdomains.rake in /lib/tasks | |
namespace :subdomains do | |
desc "adds the necessary hosts to your /etc/hosts file from current subdomains in your application" | |
task :setup => :environment do | |
# NOTE: default_hosts is used as a locator for the line to update in /etc/hosts | |
tmp_file, changed = '/tmp/etc_hosts_copy', false | |
default_hosts, hosts = %w(blog.local emptyblog.blog.local), [] | |
# find all the subdomains used in your app (push to hosts array) - modify this to suit your app |
#!/usr/bin/env ruby | |
# usage; | |
# script/twitstream start | |
# script/twitstream stop | |
# script/twitstream restart | |
# pid and log at RAILS_ROOT/tmp/pids | |
# where config/twitstream.yml looks like this; |
#!/usr/bin/env ruby | |
class Card | |
attr_accessor :rank, :suit | |
def initialize(rank, suit) | |
self.rank = rank | |
self.suit = suit | |
end |
# launching console/server | |
sc () { | |
if [ -f ./script/rails ]; then | |
rails c $@ | |
else | |
./script/console $@ | |
fi | |
} | |
sg () { |