A great tutorial can be found here.
-
Pages
A great tutorial can be found here.
$result = `ls -l $file 2>&1`;
sudo perl -MCPAN -e shell o conf init
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 …
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, …
I’m in the middle of testing this, but it should work: set MyName to do shell script “whoami”
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. …
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.
Handy calculator for the command-line. Hey, it’s already on the mac.
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 …