Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
hash tag farm lyfe

George Hickman ghickman

🏠
hash tag farm lyfe
View GitHub Profile
@ghickman
ghickman / gist:9935650
Created Apr 2, 2014
BOOYA Links for Oxford Python 1.12
View gist:9935650
https://www.python.org/download/releases/3.3.4/ <- Python 3.4 released
View gist:e2c2281fc3cc01f54043
### Keybase proof
I hereby claim:
* I am ghickman on github.
* I am ghickman (https://keybase.io/ghickman) on keybase.
* I have a public key whose fingerprint is D05C 5A1C 502A 3734 9698 2B15 EEC6 7845 093B 01FD
To claim this, I am signing this object:
View media-rename.sh
#!/usr/local/bin/bash
# use bash 4 from homebrew
set -e
shopt -s globstar
FORMAT="%Y-%m-%d_%H-%M-%S"
# Video files
@ghickman
ghickman / config.yml
Created Sep 18, 2010
Example config file for Tv Renamr
View config.yml
defaults:
format: '%n - %s%e - %t%x'
library: thetvdb
organise: yes
renamed: /Volumes/Media/TV/
the: true
'24':
format: '%n - %s%e'
@ghickman
ghickman / clean build install
Created Oct 14, 2010
Installation Instructions for Tv Renamr
View clean build install
python setup.py clean -a
python setup.py build
python setup.py install
@ghickman
ghickman / dbtest.java
Created Dec 16, 2010
Check the validity of a MySQL connection profile in a Java app. Requires the mysql jdbc connector.
View dbtest.java
package dbtest;
import java.sql.*;
/**
*
* @author George Hickman <george@ghickman.co.uk>
*/
public class Main {
@ghickman
ghickman / gist:835009
Created Feb 19, 2011
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 = https://github.com/stig/json-framework.git
[submodule "Contrib/scifihifi-iphone"]
path = Contrib/scifihifi-iphone
url = https://github.com/ldandersen/scifihifi-iphone.git
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
ghickman / setup_load_paths.rb
Created Apr 3, 2011
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')
begin
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."