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 | |
# adapted from run_screen, from the Bash Cookbook, 1st ed. May 2007 | |
# Albing, Vossen and Newham | |
# adapted by dent earl, dent earl at gmail | |
############################## | |
# Sanity check | |
if [ "$TERM" == "screen" ]; then | |
printf "%b" "According to '\$TERM' we're using screen right now. \nAborting.\n" | |
exit 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
#!/usr/bin/env python | |
""" | |
imgurURLs.py, | |
21 December 2012 | |
dent earl, dent.earl (a) gmail com | |
a script to return valid imgur urls to subreddit posted images | |
based in large part on a script from Tankor Smash: | |
http://blog.tankorsmash.com/?p=266 | |
""" | |
from argparse import ArgumentParser |
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
#!/usr/bin/env python | |
""" | |
gstatus.py, | |
21 December 2012 | |
dent earl, dent.earl (a) gmail com | |
a script to programmatically change your gchat status. | |
based in large part on a script from CyberShadow: | |
http://blog.thecybershadow.net/2010/05/08/setting-shared-google-talk-gmail-status-programmatically/ | |
""" | |
from argparse import ArgumentParser |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>com.whatever.s3upload</string> | |
<key>ProgramArguments</key> | |
<array> |
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
from random import choice | |
def heroku(hex=False): | |
# modified by @dentearl https://gist.github.com/3442096 | |
# who forked from @hasenj https://gist.github.com/3205543 | |
# who forked from: @afriggeri https://gist.github.com/1266756 | |
# example output: | |
# 'golden-horizon-2076' | |
adjs = ['afternoon', 'aged', 'ancient', 'autumn', 'billowing', | |
'bitter', 'black', 'blue', 'bold', 'broken', | |
'calm', 'caring', 'cold', 'cool', 'crimson', |
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
# primate version | |
for f in ../packagePrimates/analysis/comparatorWrapper-primates.*/; do | |
for c in A B C D; do | |
########## | |
# This block holds the background process count in check | |
while [ $(jobs | wc -l) -gt 0 ]; do | |
sleep 2; | |
done; | |
########## | |
for partner in simChimp simGorilla simOrang; do |