Skip to content

Instantly share code, notes, and snippets.

hash tag farm lyfe

George Hickman ghickman

hash tag farm lyfe
View GitHub Profile
ghickman / _contact.rb
Created July 4, 2010 17:23
Jekyll Contact Form with Sinatra
View _contact.rb
require 'rubygems'
require 'sinatra'
require 'pony'
require 'haml'
set :haml, {:format => :html5}
set :public, File.dirname(__FILE__)
set :views, File.dirname(__FILE__)
# Create the page class and give it a title of Contact for the layout
ghickman / config.yml
Created September 18, 2010 21:37
Example config file for Tv Renamr
View config.yml
format: '%n - %s%e - %t%x'
library: thetvdb
organise: yes
renamed: /Volumes/Media/TV/
the: true
format: '%n - %s%e'
ghickman / clean build install
Created October 14, 2010 09:02
Installation Instructions for Tv Renamr
View clean build install
python clean -a
python build
python install
ghickman /
Created December 16, 2010 17:04
Check the validity of a MySQL connection profile in a Java app. Requires the mysql jdbc connector.
package dbtest;
import java.sql.*;
* @author George Hickman <>
public class Main {
ghickman / gist:835009
Created February 19, 2011 11:25
Set vim to 256 colours for iTerm2
View gist:835009
set t_Co=256
View .gitmodules
[submodule "Contrib/json-framework"]
path = Contrib/json-framework
url =
[submodule "Contrib/scifihifi-iphone"]
path = Contrib/scifihifi-iphone
url =
View authorized_keys
ssh-rsa <the Gateway's generated key> Gateway
ssh-rsa <the Satellite generated key> Satellite
ssh-rsa <the generated key> User 1
ssh-rsa <the generated key> User 2
ssh-rsa <the generated key> User 3
ghickman / setup_load_paths.rb
Created April 3, 2011 23:44
Ruby script to tell RVM which environment to load
View setup_load_paths.rb
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
rvm_lib_path = File.join(rvm_path, 'lib')
$LOAD_PATH.unshift rvm_lib_path
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
# RVM is unavailable at this point.
raise "RVM ruby lib is currently unavailable."
ghickman / post-receive
Created April 5, 2011 22:22
Post-Receive hook. Runs when the repository is pushed to.
View post-receive
while read oldrev newrev refname
if [ "$refname" == "refs/heads/master" ]; then
export GIT_DIR=$WORKDIR/.git
pushd $WORKDIR >/dev/null
git pull --quiet >/dev/null
# run some code
popd >/dev/null
ghickman / .noserc
Created April 30, 2011 14:18
Example noserc file
View .noserc