Cronolog rocks. It's an elegant alternative for logrotate and it's ilk. It's small app that takes a log file name template as an argument on the command-line and logfile data on STDIN. Cronolog then outputs the log data to a log file with the given name template. The template is a subset of the C
strftime()format tokens. But I'm peculiar and even cronolog's meager installation needs are too much hassle for me, so I whipped up a copy in a couple dozen lines of Perl that can be cut and pasted into a new server. It supports an even smaller subset of tokens (those resulting from Perl's
localtime()) and a couple features I preferred (like gzipping on closing the log file).
The Trivia-o-matic is a set of tiny perl scripts that can be used to set up an impromptu trivia server for any gathering of geeks sitting around with networked laptops. It was developed during The Sixth Hope (July, 2006) as an amusement for loungers in the 2nd floor theater. The idea was to advertise a login/password on a quickly deployed box with an invitation to connect and compete in a trivia challenge. A banner with the current winner(s) and the invitation was displayed on a scrolling LED sign. The code was designed to be simple, with only basic precautions for security, assuming that the system getting hacked might be part of the amusement. It was also designed to be a quick bit of code and only took 6 or so hours to put together, which is reflected in its lack of sophistication.