the 'nad' tool that's part of the #netatalk toolsuite is getting a fun new feature: the ability to encode and decode MacBinary (.bin) and BinHex (.hqx)
if you were a Mac user back in the days you should be familiar: these two were portable formats that allowed you to store Mac files and applications in pure binary form for transmission over the network or onto "foreign" file systems without losing the precious resource fork and other metadata common on old school Mac OS
in the next stable release, 'nad' will get four new subcommands: bin, hex, unbin, unhex
these will encode and decode the data accordingly, and store the Mac OS metadata in Netatalk's AppleDouble sidecar or xattr, depending on your settings
in practice, this means you can fetch an old .bin or .hqx file off of an internet archive somewhere, pop it into a Netatalk AFP volume on your server, run the nad command, and get intact Classic Mac OS files extracted onto the modern file system for access from a vintage AFP client (and vice versa for archiving old Mac files off of a Netatalk shared volume)
as a historical note, the MacBinary/BinHex code is built on an older tool called 'megatron' by Charles Clark, which was distributed with Netatalk from ca. 1991 to 2011 -- but dropped from distribution with Netatalk v3.0
now it's back... but transformed =)
