Skip to content
Archive of posts tagged perl

Removing newlines in text files

A task that comes up every so often, for some reason

CentOS network install behind a proxy

Some messing about and voila'.

Sorting by paragraph

This comes up in discussions and forums from time to time. Basically, the input is composed of paragraphs (ie, separated by runs of empty lines), and each paragraph has a specific value somewhere in it. The goal is to sort the text "by paragraph", according to this key, and the resulting output should still consist […]

Munin traffic accounting with iptables

Get graphs for specific protocol, ports, or IP address

Last-day-of-month cron job

How to check if we're at the last day of the month