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 sys | |
import json | |
import os | |
# Hook should extract all of the following for use as Timewarrior tags: | |
# UUID | |
# Project | |
# Tags | |
# Description | |
# UDAs |
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
### Keybase proof | |
I hereby claim: | |
* I am uid0 on github. | |
* I am imroot (https://keybase.io/imroot) on keybase. | |
* I have a public key whose fingerprint is 9672 A26E 537D C9D2 8F4C F7D6 B2B3 0BF4 AA21 5C5B | |
To claim this, I am signing this object: |
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 | |
# myapp daemon | |
# chkconfig: 345 20 80 | |
# description: myapp daemon | |
# processname: myapp | |
DAEMON_PATH="/home/ec2-user/Development/projects/myapp" | |
DAEMON=myapp | |
DAEMONOPTS="-my opts" |
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 | |
CLIENT="${1}" | |
CASE="${2}" | |
TAG="${3}" | |
SERIALNO="${4}" | |
SOURCEDEV="${5}" | |
DESTPATH="${6}" | |
OUTPUTPATH=$DESTPATH/$CLIENT/$CASE/$TAG-$SERIALNO | |
LOGFILE=$OUTPUTPATH/log/$TAG-$SERIALNO.log | |
STDERRLOG=$OUTPUTPATH/log/$TAG-$SERIALNO.stderr.log |
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
function parse_git_branch_and_add_brackets { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
} | |
PS1="\h:\W \u\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ " |
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 | |
from twilio.rest import TwilioRestClient | |
import getopt, sys | |
def usage(): | |
print "Usage Instructions for alertsms.py" | |
print " -h --help: Shows this text, exits" | |
print " -o --output [number]: sends SMS to that number" | |
print " -v: enables verbose output" | |
print " -i --input [message]: message to send" |
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
function parse_git_branch_and_add_brackets { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
} | |
PS1="\h:\W \u\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ " |
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 | |
# This script should iterate through the 13K PDF's that I have, and hopefully | |
# tell me which ones are different. | |
# Check to see that yes, we actually got an argument... | |
[ "$#" -eq 1 ] || die "1 argument required, $# provided" | |
# Let's read the output from diff, and then iterate through the list. | |
# |
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 | |
# This script should iterate through the 13K PDF's that I have, and hopefully | |
# tell me which ones are different. | |
# | |
# Check to see that yes, we actually got an argument... | |
[ "$#" -eq 1 ] || die "1 argument required, $# provided" | |
# Let's read the output from diff, and then iterate through the list. |
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 org.apache.commons.mail.*; | |
public class EmailTest { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
System.out.println("Attempting to send email"); | |
Email email = new SimpleEmail(); |
NewerOlder