This is me. I promise!

This is the homepage of Martin Tournoij, also known as Carpetsmoker and arp242 on the web.
I write about stuff on this page, occasionally.

I currently work as a software developer to pay my bills; I consider myself fairly lucky, since this is what I actually enjoy doing. I currently use Ruby (on Rails) with CoffeeScript; in previous bill-paying endeavours, I used PHP, Python, and JavaScript. I’ve also programmed in C, Scheme, Haskell, and Perl. I like to use FreeBSD or OpenBSD, and I’ve used Linux a lot as well. In general, I feel UNIX is the way to go.

I play the guitar & bass guitar, both after a fashion. I like all sorts of music

For code projects, see my BitBucket page; I also have some stuff over at GitHub. I can also be found on StackOverflow, the FreeBSD Forums, DaemonForums, RationalWiki, and a number of other places. You can email me at

Making find -exec faster

Created on 15 Jan 2015

Let’s see if we can make find -exec a bit faster

Intercept outgoing mails in Ruby on Rails

Created on 20 Aug 2014

A simple way to do this, which just works™

Making FlagShihTzu work well with Formtastic

Created on 24 Jun 2014

Combine the power of Formtastic & FlagShihTzu

Digging for hosts on FreeBSD 10

Created on 08 Mar 2014

FreeBSD 10 removed bind, and with that the commandline utilities dig(1) & nslookup(1)

Generate passwords from the commandline

Created on 03 Feb 2014

Many websites offer a solution for this, but many proposed solutions are dubious at best

Creating temporary files in PHP

Created on 05 Dec 2013

mktemp() isn’t good enough; here’s something that’s (slightly) better.

Opera 11 onload bug

Created on 27 May 2011

Recent Opera versions don’t execute onload when Microsoft .eot webfonts are used.

Tunnelling SSH though a firewall with ssh -L

Created on 13 Dec 2010

Here’s a little tip on how to tunnel ssh through another machine with the -L option.

Online Unreal Tournament server browser with pcntl fork()

Created on 27 Jun 2010

Browse Unreal Tournament servers in a web browsers.

Manage Unreal Tournament cache files

Created on 24 Jun 2010

Manage Unreal Tournament 99 cache files with a Python script.

Minimal Apache configuration for subversion

Created on 18 May 2010

This is a minimal Apache configuration file for use with subversion access with SSL.

Run multiple services on one port and use PF's overload to switch between them

Created on 14 May 2010

I would like to access both ssh and a subversion HTTPS repository at my server.

Copyright © 2010-2015 Martin Tournoij <>
You may do anything with this work that copyright law would normally restrict, so long as you retain the above notice(s) and this license in all redistributed copies and derived works. There is no warranty.