This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function wordlookup { | |
curl dict://dict.org/d:$1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"connect" : ["irc://freenode/#pdxtech", | |
"irc://freenode/#pdxbots"], | |
"networks" : { "freenode" => {"host": "irc.freenode.net"}, | |
"psu" => {"host": "irc.cat.pdx.edu"} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |