Perl

Random Password Generation in a Perl One-Liner

Say you need a quick random 8 character alpha-numeric password. In sh, there isn't a $RANDOM variable and tr can give different results on different OS's. More than likely you have perl available - use it!

perl -le 'print map { (a..z,A..Z,0..9)[rand 62] } 0..pop' 8

Thanks to Chris Angell's Perl One-Liner page for this one. Do you have a better cross-platform way of doing it? Let me know!

Google Reader + Podcasts + MP3Player == GReaderSync.pl

Google Reader is great, it lets you keep up on your feeds from anywhere - your phone, your MAC, your PC, and on and on. Podcasts are great too. Free education and entertainment abound. Most podcasts can be subscribed to via RSS. Google Reader is great for keeping up on the latest podcasts, but the interface sucks and I prefer to listen to podcasts on my MP3 player. I needed a good way to integrate Google Reader and my MP3 player. GReaderSync.pl is the result.

GReaderSync.pl serves two functions:

Apache, mod_ssl, and the Sun Fire T1000 - Part II

After recompiling Apache to take advantage of the T1000's MAU as described in part I, I set out to doing some testing. Something was amiss - using some clients, I would see SSL page load times of about .025 seconds, others took close to a second. The v210 consistently tested out at about .080 seconds per page.

Subscribe to SysAdmin's Journey RSS