Skip to content

Instantly share code, notes, and snippets.

@wraithan
wraithan / gist:5905833
Last active December 19, 2015 05:39 — forked from rhelmer/gist:5905781
#!/bin/sh
BRANCH=`git rev-parse --abbrev-ref HEAD`
REMOTES=`git remote -v | awk '{print $2}' | uniq | sort`
if [ $# != 1 ]
then
echo 'Syntax: githubify <path_to_file>'
exit 1
fi
{
"connect" : ["irc://freenode/#pdxtech",
"irc://freenode/#pdxbots"],
"networks" : { "freenode" => {"host": "irc.freenode.net"},
"psu" => {"host": "irc.cat.pdx.edu"}
}
}
@wraithan
wraithan / fabfile.py
Created September 15, 2011 20:05 — forked from bingomanatee/fabfile.py
slipping throught exception handling with fabric
import time
from fabric.api import puts
def update_agi(delay=4):
prep_hosts()
puts('waiting %s seconds for agis to cycle down' % delay)
time.sleep(delay)
fab_lib.kill_rails()
# where ever this is defined
def live():
env.hosts = api_call_that_gives_me_the_urls_to_the_hosts()
def agi_deploy():
command = fab_lib.get_agi_status_for_asterisk_server()
print'running ', command, 'on hosts: ',ast_hostnames_as_tyger
print run(command, True)
"""
fab live agi_deploy
#!/bin/bash
function wordlookup {
curl dict://dict.org/d:$1
}