When Twitter was still in its early stages, you could track certain search terms in near-realtime via Jabber. It was quite popular and its performance degraded over time as more users signed up and began posting updates. Eventually, Twitter killed the jabber bot altogether. Many users have asked when it will return. Well, it hasn’t returned, but you can build your own replacement with ruby, a jabber account, and a few gems.
My curiosity is always piqued when I find new ways to manipulate command line output in simple ways. While working on a solution to parse /proc/mdstat output, I stumbled upon the paste utility. The man page offers a very simple description of its features: Write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output. Here’s an example of how it works. Let’s say you want to parse some software raid output that looks like this:
If you want your iptables rules automatically loaded every time your networking comes up on your Debian or Ubuntu server, you can follow these easy steps. First, get your iptables rules set up the way you like them. Once you’ve verified that everything works, save the rules: Next, open up /etc/network/if-up.d/iptables in your favorite text editor and add the following: Once you save it, make it executable: Now, the rules will be restored each time your networking scripts start (or restart).