CW: osxhacks

osxhacks

shell scripts:

pdfsplit: ( 14 lines)

nytget: ( 107 lines)

(c) 2005 chris.wiggins(at)gmail.com
code to download htm from NYT apt listings

csync: ( 159 lines)

(c) 2005 chris.wiggins(at)gmail.com
code to export various csh scripts,
bookmarklets, sedfiles, and aliases
to a webpage for osx hacks.

bibreg: ( 164 lines)

regularizes bibtex files.
(c) 2005 chris.wiggins(at)gmail.com

lookm: ( 64 lines)

sh script to send mail using an address file.
works with attachments too by wrapping around osascript
(c) 2005 chris.wiggins(at)gmail.com

tex-alias-gen: ( 11 lines)

greps out undefined tex commands

mute: ( 18 lines)

tcsh script, wrapping around osascript/applescript,
for muting the volume for set amount of time (or infinite if no argument).
highly useful for commercials, e.g.,
mute 30 &
to mute for 30 seconds.
(c) 2005 chris.wiggins(at)gmail.com

nnice: ( 33 lines)

wrapper around renice to generate command to renice jobs by regexp
or, if no input, contents of the clipboard
to execute simply apple-V
or provide filename to source (default nnice.sh)
note that input could be ucomm (short job ID from top) or pid (process id)

times: ( 39 lines)

wrapper around curling times from timeanddate.com
as command line arguments, input any strings you
want passed as regexps to grep -i -e $1 -e $2 ....

travel: ( 4 lines)

wrapper to travelpedia

wiki: ( 4 lines)

wrapper to wikipedia

goe: ( 44 lines)

tiny tcsh script to build a .kml file so that
I can call google earth from the command line given long+lat
usage: goe long lat log_10(height) description of place
example
goe 30 -90 5 new orleans, louisiana
remember, it's the NS number 1st, then the EW number

sequence: ( 10 lines)

wraps around the best site ever, turns , into %2C

triage: ( 21 lines)

mgm: ( 8 lines)

open your browser in a mobile-formatted gmail search
eliminates spaces
turns / (for dates) into url-formatted /
presumes ~/bin/chrome is location of exe (sorry; for me that's a soft link to /Applications/Google Chrome.app)

gm: ( 8 lines)

open your browser in a gmail search
eliminates spaces
turns / (for dates) into url-formatted /

ejournal: ( 22 lines)

tcsh script, useful for people at columbia,
to direct you to the URL for columbia's link
to a particular journal.

sms: ( 27 lines)

tiny tcsh script to wrap around mailing to teleflip to send sms's by email

urban: ( 16 lines)

useful for defining slang

wiki: ( 4 lines)

wrapper to wikipedia

google: ( lines)

exchange: ( 174 lines)

tcsh script; wrapper to links out currency conversions. 142 currencies definedas of Mon Jun 27 05:22:15 EDT 2005
Sat Jan 10 13:07:12 EST 2009: yahoo changed syntax. going to google:

websync: ( 18 lines)

code to synchronize my webpage

mathbio: ( 14 lines)

tcsh script, to search st-andrew's biographies page

itunes: ( 116 lines)

*NOT WRITTEN BY ME*:
iTunes Command Line Control v1.1
written by David Schlosnagle
created 2001.11.08
see: http://www.macosxhints.com/article.php?story=20011108211802830
modifications by Wayne k. Walrath - http://www.acmetech.com/ [2004.06.01]

sed scripts:

photo2blog.txt:

undo iphoto's mangling of html tags

normallscript.txt:

favorite Safari bookmarklets:

make a tinyurl

mail page

translate webpage (j->e)

favorite aliases