tips

Rails webapp and IPv4/IPv6 requests count

The context: you have deployed IPv6 on your server, your Ruby on Rails webapp is running fine and is accessed both in IPv4 and IPv6. Nice. Now you want now to get a little report to know the proportion of IPv4/IPv6 requests. OK. I have the same need. When thinking about it, I dediced to fork the excellent request-log-analyser and update it. Then I realized that it could be achieved much more easily with a couple of awk lines.
More >

Postfix queue management

Never been in a situation where your primary mail server is being delivering a newsletter (for instance), which could be a very long process, and you are sitting in front of your mail client waiting for an urgent mail, which won’t be delivered until the mail server queue is empty?

There is very useful tool provided with Postfix which could save us in those kind of situations (at least, it saved me multiple times) : postsuser. postsuser helps in the management of the mail queue.
More >

Recursively delete .svn directories

Sometimes it is good to remember simple tips. To recursively delete .svn directories:

rm -rf `find . -type d -name .svn`