Miscellaneous shell one-liners

Do what you want with these, I don't care. (Does that count as a dedication to the public domain?)

Obfuscate text in HTML (converting to ASCII character codes)

perl -e 'foreach $char (split //, <>) { print "&#" . ord($char) . ";" } print "\n"'

Generate a random 8-character ID

perl -e 'printf "%s\n", join("" => map [0..9, a..z]->[rand 36], 1..8)'