===== Miscellaneous Hacks ===== These are various scraps of code that don't fit into other categories. **[[http://www.meowfishies.com/code/aimbot/|AIMBot]]**\\ A collection of robots for [[http://aim.aol.com/|AOL Instant Messenger]]. Requires the TAClink needed client, and also possibly HeXlink needed. **[[http://www.meowfishies.com/code/apm.c|apm.c]]**\\ Display the current battery life on a [[FreeBSD]] system. **[[http://www.meowfishies.com/code/buf_size.c|buf_size.c]]**\\ Determine the optimal buffer size based on the amount of system time required to write various blocks to a temporary file. This doesn't seem to work anymore for some reason. **[[http://www.meowfishies.com/code/bump-serial.sh|bump-serial.sh]]**\\ Bump the serial number in a standard DNS zone file to either the current date x 100, or increment it by one. **[[http://www.meowfishies.com/code/cdda2mp3.rb|cdda2mp3.rb]]**\\ A Ruby script to rip, encode, tag, and organize MP3s from a compact disc. Also see the original shell script version: [[http://www.meowfishies.com/code/cdda2mp3.sh|cdda2mp3.sh]]. **[[http://www.meowfishies.com/code/clsearch.rb|clsearch.rb]]**\\ Search [[http://www.craigslist.org/|CraigsList]] for apartment listings based on location and price. **[[http://www.meowfishies.com/code/ethvend/|ethvend]]** (also **[[http://www.meowfishies.com/code/ethvend.tgz|ethvend.tgz]]**)\\ Identify the vendor of a specific Ethernet address, including by IP address (if it exists on the current subnet). **[[http://www.meowfishies.com/code/fetch-megatokyo.csh|fetch-megatokyo.csh]]**\\ Fetch all [[http://www.megatokyo.com/|MegaTokyo]] comic strip images. I think this no longer works now that the URL scheme has changed. Somebody should fix it. **[[http://www.meowfishies.com/code/fp.c|fp.c]]**\\ Print the buffered IO callbacks used in libc for various file types. **[[http://www.meowfishies.com/code/fxtvchan/|fxtvchan]]**\\ Change the channel from the command-line on "FreeBSD TV". Works with Brooktree drivers for [[FreeBSD]]. Used with ffmpeg for headless recordording of TV shows. **[[http://www.meowfishies.com/code/idle.c|idle.c]]**\\ Print a message to the terminal when another user stops being idle. This is furiously nerdy, but I used it to stalk girls I had crushes on who used the same shell boxes. **[[http://www.meowfishies.com/code/mipsdis.c|mipsdis.c]]**\\ A MIPS disassembler in 218 lines of ANSI C. Could probably be shorter if it were less readable. **[[http://www.meowfishies.com/code/mixer.sh|mixer.sh]]**\\ A bootstrap script for [[FreeBSD]] to maintain the audio mixer state between reboots. **[[http://www.meowfishies.com/code/motd.asm|motd.asm]]**\\ Assembly language program to print the contents of ''/etc/motd''. Doesn't seem to work anymore. **[[http://www.meowfishies.com/code/port-update.csh|port-update.csh]]**\\ Update //only// a specific [[FreeBSD]] port and its dependencies from a CVS repository. Avoids the overhead of doing a full update. **[[http://www.meowfishies.com/code/rot-bg.plx|rot-bg.pl]]**\\ Rotate the X background image every //n// minutes from a cached directory of images. I used this to alleviate boredom and freak out my coworkers. **[[http://www.meowfishies.com/code/syscall.c|syscall.c]]**\\ Print the return value of a given syscall. Not sure what this was useful for anymore. **[[http://www.meowfishies.com/code/thetick/|thetick]]**\\ A fortune file of quotes from The Ticklink needed. Can be installed into ''/usr/share/games/fortune'' and used with ''fortune thetick''.