Permalink
Browse files

who needs that crap

  • Loading branch information...
aaronj1335 committed Oct 21, 2013
1 parent e8b0385 commit eb2b768157865eeaa00d5449a5a5ecec92517729
Showing with 0 additions and 121 deletions.
  1. BIN chromedriver
  2. BIN closure-compiler
  3. +0 −16 follow_until
  4. +0 −39 imail
  5. +0 −49 sigwrap
  6. +0 −9 sync_music_to_mac_mini.sh
  7. +0 −8 sync_music_to_work_laptop.sh
View
Binary file not shown.
View
Binary file not shown.
View
@@ -1,16 +0,0 @@
-#!/usr/bin/env python -u
-
-import sys,re
-
-def main():
- re_end = re.compile(sys.argv[1])
- re_fail = re.compile(sys.argv[2]) if len(sys.argv) > 2 else None
- for line in sys.stdin:
- sys.stdout.write(line)
- if re_end.match(line):
- sys.exit(0)
- elif re_fail and re_fail.match(line):
- sys.exit(1)
-
-if __name__ == '__main__': main()
-
View
39 imail
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-USAGE="USAGE: `basename $0` [-h] <file to be attached>
-
-this is an applescript to send the command line argument as an attachment in
-apple mail
-
-Options:
- -h Show this help message"
-
-# Parse command line options.
-while getopts h OPT; do
- case "$OPT" in
- h)
- echo "$USAGE"
- exit 0
- ;;
- \?)
- # getopts issues an error message
- echo "$USAGE" >&2
- exit 1
- ;;
- esac
-done
-
-# Remove the switches we parsed above.
-shift `expr $OPTIND - 1`
-
-osascript << EOS
-set theAttachment to "$1"
-tell application "Mail"
- set theMessage to make new outgoing message with properties {visible:true}
- tell content of theMessage
- make new attachment with properties {file name:theAttachment} at after last paragraph
- end tell
-end tell
-EOS
-
-open /Applications/Mail.app
View
49 sigwrap
@@ -1,49 +0,0 @@
-#! /bin/bash
-
-USAGE="USAGE: `basename $0` [-h] [args...]
-
-this just spins and waits for a SIGUSR1, when it gets signaled, it runs the
-specified command. example usage would be something like:
-
- $ sigwrap run_unit_test.sh
- sig wrapper started. trigger with:
- kill -SIGUSR1 45697
-
-then in your editor of choice you might set up some keyboard mapping to run
-that command and re-run your unit tests
-
-Options:
- -h Show this help message"
-
-# Parse command line options.
-while getopts h OPT; do
- case "$OPT" in
- h)
- echo "$USAGE"
- exit 0
- ;;
- \?)
- # getopts issues an error message
- echo "$USAGE" >&2
- exit 1
- ;;
- esac
-done
-
-# Remove the switches we parsed above.
-shift `expr $OPTIND - 1`
-
-args="$*"
-
-# trap ctrl-c:
-HANDLE_SIGUSR1() {
- echo "$args" | bash
-}
-trap HANDLE_SIGUSR1 SIGUSR1
-
-echo "sig wrapper started. trigger with:"
-echo "kill -SIGUSR1 $$"
-
-while true; do
- sleep 0.1
-done
@@ -1,9 +0,0 @@
-#! /bin/bash
-
-rsync -aL --progress \
- --exclude Mobile\ Applications \
- --exclude Previous\ iTunes\ Libraries \
- --exclude iTunes\ Music/Podcasts \
- --exclude iTunes\ Music/Movies \
- --exclude iTunes\ Music/TV\ Shows \
- ~/Music/iTunes/ partytimeexcellent.local:Music/iTunes/
@@ -1,8 +0,0 @@
-#! /bin/bash
-
-rsync -aL --progress \
- --exclude Mobile\ Applications \
- --exclude Previous\ iTunes\ Libraries \
- --exclude iTunes\ Music/Podcasts \
- --exclude Movies \
- ~/Music/iTunes/ trainwreck.local:Music/iTunes/

0 comments on commit eb2b768

Please sign in to comment.