Remote tail with GeekTool

Today I discovered a wonderful OSX control panel called GeekTool, which lets you put all kinds of stuff on your desktop. I wish I had known about this long ago, but better late than never =)

My goal was to tail a logfile on a remote server and display it on my desktop. GeekTool supports three types of “Geeklet”: File, Image, and Shell. File displays the content of a file, Image displays an image, and Shell displays the output of a shell command (good thing I’m here to clarify!) Each of them has various options, which the GeekTool website documents in further detail.

The shell geeklet is implemented as a (probably recurring) shell command that gets run, with the output being shown on completion. Unfortunately, this rules out the simple approach of `ssh user@server “tail -f /var/log/yourlog”`. By running an ssh process to tail the log and piping the output into a local file, we can happily have our “log tail” without continuous ssh connects and disconnects: `ssh -f user@server “tail -f /var/log/yourlog” > /tmp/server_log_yourlog`.

Throw in a file geeklet, and you’re done. I happened to want the newest text on top, so I used a shell geeklet of `tail -r -100 /tmp/server_log_yourlog`. Enjoy your upside-down live server logs on your desktop!

PrintRoom Albums

I today had the unfortunate experience of having to deal with PrintRoom, which is pathetic. Not only do all pictures (in my case, anyway) get stamped with a low-rent watermark, but they’re shown through a flash-based interface, and scaled to 1.2x original size by a low-quality algorithm!

Needless to say, I took personal exception. So I wrote a script to download all the photos out of a PrintRoom album. It required a perl interpreter, the LWP::Simple module, and wget installed on your system. If you don’t know what this means, the script is not for you. If you have a compatible system and are stuck with printroom, then download the script.

More battle apps added

While updating my scripts to deal with the latest little captcha deal, I noticed that two more apps have been added to the battle (read: spam?) apps family. So, in addition to the cheats for Vampires vs Werewolves, Skiers vs Snowboarders, Pirates vs Ninjas and Santa vs Grinch, I’m now introducing the cheats for Cops vs Robbers and Democrats vs Republicans.

Whew! When it takes a whole paragraph to list essentially identical applications, maybe it’s time to stop making more of them. In any case, the scripts can be downloaded from the FaceBook battle apps page as usual. Have a great trip upwards through the ranks!

Broken battle apps scripts fixed

As several users have reported, the developers of the battle apps have adjusted their pages to intentionally break my scripts. I have updated my scripts to deal with this, and have clarified the error message shown on changed web pages. You can grab the newest goodies from my battle app page. Updating scripts will replace your settings with the defaults, so you’ll need to change them back again. Happy battling!