Skip to content

Instantly share code, notes, and snippets.

View seansawyer's full-sized avatar

Sean Sawyer seansawyer

View GitHub Profile
@seansawyer
seansawyer / .tmux.conf
Created October 5, 2011 20:27
my tmux configuration
# Prefix
set -g prefix C-j
# Copy mode
unbind [
bind Escape copy-mode
# Use Vi mode
setw -g mode-keys vi
# Make mouse useful in copy mode
setw -g mode-mouse on
@seansawyer
seansawyer / gist:983715
Created May 20, 2011 20:19
Extract an OTP application version number from an Erlang .app file
awk "/\\{vsn, \"([0-9]+)\"\\}/" src/synchole.app.src | sed -En "s/[^[:digit:]]*([[:digit:]]+)[^[:digit:]]*/\1/p"
git clone git@github.com:vitrue/synchole.git
cd synchole
rebar clean compile generate
%% extract version number from reltool.config
mv rel/synchole rel/synchole_VSN
scp rel/synchole_VSN deploy@dest:/data/synchole/rel