I wrote a fun sed script today: sed -E -n -e ‘:t ; s/(.{21})(.*)/\\bf\{\1\}\n\2/ ; p ; s/\\bf\{(.*)\}\n.*/\1/ ; h ; :q { n ; G ; s/(.{21})(.*)\n\1/\2/ ; tp ; s/(.+)\n.*/\1/ ; bt} ; :p { P ; bq }’ Short, but effective. Can you figure out what it does? (solution after the break)
*nix Tip of the Day: Waiting in Scripts
Scripting is what makes Unix-like operating systems great. Every *nix, be it Linux, BSD, OS X, AIX, Solaris, or whatever other random distribution you can come up with, comes with a capable shell (or three) and a good set of basic utilities. Where a Windows administrator has to either fall to the horror that is [...]
Github
Brief post. I decided to actually use Github once in a while now (not in the least because I use it for open-source stuff at work). My page is up at github.com/Roguelazer, and the work account which I’m a contributor on is at github.com/Yelp. So, uh, feel free to comment on or improve any code [...]
wamupd-0.1.2
wamupd 0.1.2 is now available at http://files.roguelazer.com/projects/wamupd/wamupd-0.1.2.tar.bz2 (or via git, if you prefer). It fixes some TXT-related bugs filed by @daagaak. As usual, to learn about the project you can visit the wamupd page.
dnsextd, TCP, and IPv6
Hello interested parties. dnsextd (in my git repository) now supports TCP. It was actually sort of an amusing bug. I guess the dnsextd code must date back to PowerPC, because it had an extra ntoh call which on little-endian systems would cause TCP requests to fail. It’s fixed in the “tcp” branch of my git [...]






