Trying to sort full-screen apps in Lion? Here’s how System Preferences Mission Control Check “Automatically rearrange spaces based on most recent use This allows you to organize your full-screen apps by alt-tabbing through them (yeah not the greatest). Bonus: I’m still trying to get used to the three-finger swipes and accidentally alt-tab once in a [...]
Category Archives: Scripting
Xargs choking on whitespace
Every once in a while the normal recursive bash command doesn’t work and I resort to using find with xargs. Of course xargs hates whitespace and I often find myself working with files created by others. xargs chokes on whitespace thinking it’s an indication of a new file. The solution is to get find to [...]
Catching System output from Perl
I’m too lazy to install a perl module, on a local computer, for a quick whois on a few domains. Catching the shell’s output is more convenient in this case. Instead of first writing and then reading from a file, it makes more sense to use a pipe. Here’s a quick example: #!/usr/bin/perl open (WHOIS, [...]
Find current user with in an Applescript
I’m in the middle of testing this, but it should work: set MyName to do shell script “whoami”
Oracle
I’ve been trying to pick-up a little oracle db experience. In Oracle sqlplus, if you type ed or edit at the command prompt, sqlplus will put the last command into an editor buffer for easy editing. Here’s a quick tip for you; the default editor in Oracle sqlplus can be changed to vim pretty quickly. [...]
Backup data using Amazon’s S3 on the Mac
There are other solutions to backups not involving Amazon’s S3. If you insist on using S3, this seems like the easiest solution, the comments hold particular value; suggested usage includes rdiffs and swapping out launchd for Automator and ical. Read the article here.
bc a GNU CLI Calculator
Handy calculator for the command-line. Hey, it’s already on the mac.