I've been hunting for weeks for a utility to swap the Alt/Option keys on my MS keyboard when plugged into my MacBook. There are some scary utilities that will (maybe) do this for you automatically when (un)plugged. But this simple AppleScript does the job flawlessly without fear of bricking your box. Remember to "Enable GUI Scripting" in the AppleScript Utility.
Results tagged “scripts” from manAmplified
Two quick unix commands that will clean a Squid log file for import into R. Very useful when you need to fine tune your cache strategy.
Continue reading Cleaning Squid Logs.
Found in the Nutch source. A regex pattern used for matching URL strings in text. Used with Perl5Compiler in Jakarta ORO.
Continue reading URL Regex Pattern.
Having been using E4X on the server side and on the command line to manipulate XML documents for some months now, I went back to see if I could learn a couple things from my older code that would result in a few best practices and idioms for using E4X.
Continue reading Deciphering E4X.
Since I seem to deal with a lot more XML documents than I would like, using JavaScript + E4X as a command line scripting language is a godsend. Below is an example on how to build a quick and dirty command line arguments parser.
Continue reading JavaScript Command Line Parsing.
I'm sure this utility exists somewhere in a more robust implementation, but google hasn't led me to it. So I present for posterity, a simple bash utility to copy the songs in a given playlist to a new location.
Continue reading Copying iTunes Playlist Tracks.