mt-close-comments

Movable Type does a pretty decent job of keeping blog comment spam in check. Except for when it doesn't. And when it doesn't, it's handy to be able to go back and close comments on old entries.

mt-close-comments is a Perl program that does just that. By default it will go back and close any entry older than 20 days. Throw this in your crontab and bob is literally your uncle.

mt-close-comments.png

http://github.com/kevinspencer/mt-close-comments

get-album-bitrate

Quick Perl program to parses an iTunes library XML file to find albums encoded below a specified bit rate.

I initially wrote this to find albums I'd originally ripped & encoded with Winamp. So now in my spare time I can figure out what needs re-ripping.

gabr.png

http://github.com/kevinspencer/get-album-bitrate

lastfm-friendsrecent

Get your friends recently listened to tracks from last.fm. Uses the last.fm API (http://www.last.fm/api/intro) and thus requires a last.fm API key.


Picture 3.png

http://github.com/kevinspencer/lastfm-friendsrecent

lastfm-myrecent

Get your most recently listened to tracks from last.fm. Uses the last.fm API (http://www.last.fm/api/intro) and thus requires a last.fm API key.


Picture 2.png

http://github.com/kevinspencer/lastfm-myrecent

count-by-artist

Perl program to parse an iTunes Library XML file and counts the number of songs by each artist.

Picture 1.png

http://github.com/kevinspencer/count-by-artist

rm-empty-dirs

Traverses a directory tree and removes any empty directories. Initially written to cleanup an iTunes music folder with lots of empty directories after an iTunes library reorganization.

rm-empty.png

http://github.com/kevinspencer/rm-empty-dirs

-->

Inconsequential Hacks

Bits of code I've written. You might find some of it handy.

Then again, you might find some of it nicks your cheese in the middle of the night. So consider yourselves suitably warned.

All source code can be found in my github repository and unless otherwise specified, is licensed under the GPL.