Skip to content

Instantly share code, notes, and snippets.

View billhorsman's full-sized avatar

Bill Horsman billhorsman

View GitHub Profile
@henrik
henrik / commit-msg
Created September 10, 2009 18:25
Git commit-msg hook that automatically adds "Refs #123" when in the branch t123, "[#123]" when in the branch s123 etc.
#!/usr/bin/env ruby
#
# Git commit-msg hook. If your branch name is in the form "t123", automatically
# adds "Refs #123." to commit messages unless they mention "#123" already.
# Include "#close" or "#finish" to add "Closes #123."
#
# For Pivotal Tracker, branch names like "s123" adds "[#123]".
# Include "#close" or "#finish" to add "[Finishes #123]".
#
# If you include "#noref" in the commit message, nothing will be added to
@skull-squadron
skull-squadron / gist:941686
Created April 26, 2011 02:31
Build pg gem with macports, rvm and postgresql 9.0.3 running locally
sudo port install postgresql90 postgresql90-server
env ARCHFLAGS="-arch x86_64" \
gem install pg -- \
--with-pg-include=/usr/local/include/postgresql90/ \
--with-pg-lib=/usr/local/lib/postgresql90/ \
--with-pg-config=/opt/local/lib/postgresql90/bin/pg_config
@tjl2
tjl2 / dj.sh
Created January 29, 2012 09:49
#!/bin/sh
#
# This script starts and stops the Dj daemon
# This script belongs in /engineyard/bin/dj
#
PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
CURDIR=`pwd`
usage() {
echo "Usage: $0 <appname> {start|stop} enviroment [name maximum_priority minimum_priority]"
@billhorsman
billhorsman / Gemfile
Created April 3, 2014 08:37
Turbolinks and AddThis
# This ensures that jQuery is reinitialized after the page:change event
gem 'jquery-turbolinks'