Skip to content

Instantly share code, notes, and snippets.

View shelbybark's full-sized avatar

Steven Crawford shelbybark

View GitHub Profile
@shelbybark
shelbybark / gist:2954632
Created June 19, 2012 14:54
sample from vim config
autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab|set softtabstop=4
autocmd FileType ruby,eruby,yaml set tabstop=2|set shiftwidth=2|set expandtab|set softtabstop=2
@shelbybark
shelbybark / gist:1279310
Created October 11, 2011 20:25
traceroute
traceroute to shelbybark.com (72.10.39.124), 64 hops max, 52 byte packets
1 * 192.168.72.1 (192.168.72.1) 2.307 ms 1.113 ms
2 73.12.95.1 (73.12.95.1) 9.207 ms 8.158 ms 8.623 ms
3 te-8-2-ur01.tuscaloosa.al.tusca.comcast.net (68.85.205.161) 10.741 ms 8.773 ms 10.249 ms
4 te-7-1-ar01.huntsville.al.hunts.comcast.net (68.85.205.45) 14.740 ms 13.646 ms 13.967 ms
5 xe-4-1-3-0-ar03.nashville.tn.nash.comcast.net (68.85.232.109) 18.177 ms 18.345 ms 17.920 ms
6 pos-3-7-0-0-cr01.chicago.il.ibone.comcast.net (68.86.90.73) 34.411 ms
pos-3-9-0-0-cr01.chicago.il.ibone.comcast.net (68.86.95.209) 34.450 ms 32.214 ms
7 pos-1-12-0-0-cr01.350ecermak.il.ibone.comcast.net (68.86.88.90) 32.985 ms 32.627 ms 38.647 ms
8 pos-1-0-0-0-pe01.350ecermak.il.ibone.comcast.net (68.86.86.34) 32.882 ms 36.282 ms 32.607 ms
@shelbybark
shelbybark / fabfile.py
Created September 21, 2011 22:35
Sample Fabric file
from fabric.api import env, run, sudo
def production():
env.hosts = ['serveraddress.com']
env.user = 'my_username'
def deploy():
run('cd /home/username/code/website; git fetch && git merge origin/master;')
sudo('sudo svc -du /etc/service/website')
function FindProxyForURL(url, host) {
if (url.match(/:9080\//)) {
return "PROXY localhost:3129";
}
if (url.match(/\biago\b/) ||
url.match(/\babla\b/) ||
url.match(/\brove\b/) ||
url.match(/\bphpmyadmin\b/) ||
url.match(/\bcoptix\.lan\b/) ||
shExpMatch(url, "http://errors.flash.hosts.coptix.com/*") ||