Gentoo + OpenVPN : getting things started in the correct order

July 3rd, 2010 by Stephane Kattoor

I’m running an OpenVPN server, configured in bridging mode.

I had quite a bit of trouble getting OpenVPN to start after networking is up, but before the the bridge is setup so that the tap0 device, which is created by OpenVPN can be added to the bridge.

The solution is simpler : let the tap0 be automatically created and added to the bridge by Gentoo Linux, then start OpenVPN with a config file instructing to use the already created tap0 device.

This post shows the configuration snippets to get things started in the right order on Gentoo.
Read the rest of this entry »

Bash / zsh : Using the history expansion

March 28th, 2010 by Stephane Kattoor

One of the features of bash I’ve too long overlooked is its history expansion. In this post I’ll show a few examples to get a grip at it.
Read the rest of this entry »

Perl : Counting occurences of IP addresses in Apache logs

March 2nd, 2010 by Stephane Kattoor

This Perl one-liner is intended to print the 10 most frequent client IP addresses in an Apache log file. It can easily be recycled to count anything, though.
Read the rest of this entry »

AIX : Use sar to check cpu usage

January 30th, 2010 by Stephane Kattoor

If you’re looking for CPU usage statistics and system performance on IBM AIX, sar might just be the tool your looking for. It’ll display information for 5 minutes intervals from midnight to current time. The output looks like this :
Read the rest of this entry »

Perl+Twitter : Getting @mentions from command line

January 24th, 2010 by Stephane Kattoor

This code snippet demonstrates how easy it is to collect your twitter @mentions in Perl, coupled with curl for simplicity.
Read the rest of this entry »