Skip to content

Instantly share code, notes, and snippets.

View jaronson's full-sized avatar

Josh Aronson jaronson

View GitHub Profile
VHOME=~/
sudo apt-get -y install curl wget unzip exuberant-ctags ack tree screen
curl -k https://gist.github.com/jaronson/6992632/raw/6f85f1d34345ba256ef9a5aed2040896498cb857/debian.vimrc -o $VHOME/.vimrc
curl -k https://gist.github.com/jaronson/6892032/raw/63d6b162f3a84396fe9ef7c0da089b8107611af7/.screenrc -o $VHOME/.screenrc
curl -k https://gist.github.com/jaronson/6903803/raw/088e95bcca30ead24bcab4f0561c618842b659e6/debian.profile -o $VHOME/.profile
curl -k https://gist.github.com/jaronson/6903796/raw/ef5f976fcff0ea50e4aa38191cb86a8ee4a1b38d/debian.bash_profile -o $VHOME/.bash_profile
curl -k https://gist.github.com/jaronson/6893402/raw/38751e33b7ab47a9175508a6e0b202d766b6de6e/debian.bashrc -o $VHOME/.bashrc
set noerrorbells
set nocompatible
set showmatch
set expandtab
set tabstop=2
set shiftwidth=2
set backspace=2
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
set nu
sudo apt-get -y install build-essential devscripts quilt
sudo apt-get -y build-dep openssl
apt-get source openssl
cd openssl-*
quilt pop -a # This removes updates
vi debian/patches/series # Remove no-ssl2.patch
vi debian/rules # Remove no-ssl2 in args
quilt push -a # Re-applies the updates
dch -n 'Allow dangerous v2 protocol'
dpkg-source –commit
#!/bin/bash
export MYSQL_PASS=
function mysql_search_schema_usage(){
cat << EOF
usage: $0 <terms> [database]
EOF
}
function mysql_search_schema(){
#!/usr/bin/env ruby
sockname = ARGV.shift
rc = ".screenrc"
rc = sockname ? "#{sockname}#{rc}" : rc
lconfig = File.read(File.join(Dir.pwd, rc))
sockname = [ File.basename(Dir.pwd), sockname ].compact.join('.')
#!/bin/bash
sockname=$1
curdir=`pwd`
rc='.screenrc'
[[ -z $sockname ]] && rc="$sockname$rc"
sockname="$(basename $curdir)"
unbind C-b
set-option -g prefix C-t
# status bar
set-option -g status-utf8 on
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
#!/usr/bin/env bash
sockname=$1
curdir=`pwd`
config='.tmuxrc'
[[ -n $sockname ]] && config="$config.$sockname"
sockname="$(basename $curdir)"
@jaronson
jaronson / unicorn
Created May 28, 2014 19:48
Unicorn init script
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the unicorns at boot
# Description: Enable at boot time.
### END INIT INFO
unbind C-b
set-option -g prefix C-t
set -g status on
set -g status-bg colour234
set -g status-utf8 on
set -g status-utf8 on
# Start numbering at 1
set -g base-index 1