Category Archives: Scripting

Install rar and unrar on a Mac OX 10.5+

A great tutorial can be found here.

Perl grabbing output from a shell command

$result = `ls -l $file 2>&1`;

Re-configuring CPAN

sudo perl -MCPAN -e shell o conf init

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.

Embed Tags for Quicktime

I’m working on a personal project for the iPhone. Specifically, I’d like to make an ajaxed index of all my music organized by artist. It’s a spare time project, and I don’t have much of that right now, but it’s coming along well. I started out by making an HTML index of a directory of