Various Scripts

Here are a few scripts that might be useful for more people than just me.

System

fix_symlinks [a Ruby script]

Interactively fix broken symbolic links by choosing a matching item found in the slocate database (plain locate won't work) or setting the new target manually.

run_after_check [a Shell script]

Run a command after a condition has become true.

user-cron-dirs [a Shell script]

Periodically run scripts in ~/.cron.{daily|weekly|monthly}.

Burning & MP3

burnplaylist [a Ruby script]

Burn the audio files referenced by a playlist to an ordinary audio CD. Requires cdrdao and mpg321.

k3b2m3u [a Ruby script]

Create a playlist (.m3u) from a k3b audio project.

k3breport [a Ruby script]

Create a HTML report of the contents of a list of k3b data projects.

XML munging

symbol2char [a Ruby script]

Convert entity symbols in an XML-file to ordinary characters.

symbol2entity [a Ruby script]

Convert entity symbols in an XML-file to numeric entity codes.

entity2symbol [a Ruby script]

Convert numeric entity codes in an XML-file to symbolic entities.