Skip to content

Author: Rowan Rodrik

http://www.payformystay.com/

My day job is at YTEC, where I build tailor-made software (“maatwerk software“) for clients in logistics, healthcare and printing.

I like my day job, but I would like it even more to not have (and need!) a day job, which is why I built payformystay.com, an index of job offers for people looking for temporary work abroad. We feature job offers in many countries. Whether you want to polish your Spanish by working in Costa Rica or working in Honduras, or whether you rather go grape picking in France, we may have wat you’re looking for.

Making a shell-script run with setuid root

If you want to run a process with root privileges that you can invoke as a less unprivileged user, you can make the program setuid root. This can be very useful, for example, when you want a PHP or CGI script to call a backup process, or to create a new site or irrevocably delete you whole system. The latter example points to a serious security problem: if anyone can figure out a way to make your program do something you don't want, you're screwed, because you just gave them root privileges to wreak maximum havoc. That's why, normally, scripts (anything executed by an interpreter by the kernel because of a shebang) won't get elevated privileges when you set their setuid bit. Read More »

Remove appending slash from a path using Sed

Here's how you can remove the appending slash from a path using sed, the stream editor: Read More »

Ubuntu and SiS 671 VGA chipset driver

The video on my mom's laptop, A Fujitsu Siemens Esprimo Mobile V5535, had recently gone awry. At the time, the laptop was running Ubuntu 9.04 (I think). Reconfiguring the driver didn't do much good, so I upgraded the machine to 10.04, hoping that that would fix it. It didn't. Read More »

How to make a wiki work: PALDAP

The first ever wiki I started was www.paldap.org. PALDAP stands for “PALDAP: A Lazy Directory Administrator's Pal”. Yes, that's a recursive acronym. Cute, ainnit? I actually registered the domain because it was the name of a crappy abandonware PHP LDAP administration tool that I wrote in PHP, but decided instead to configure it as a wiki to host some of my assorted experiences with LDAP and OpenLDAP in particular. Read More »

Effective CLI habits

Just an example of some effective CLI magic that I copy/pasted into a draft aboutexactly a year ago. Can you see what's happening? I'm moving some selected files into a subdirectory. Read More »

Posting to WordPress via the command-line

In February I was interested in posting to WordPress from the command-line, a possibility that I enjoyed when I wanted to apply some CLI-magic to some of my MediaWiki installations in the past. Read More »

Taking control of the wpautop filter

Wordpress does automatic paragraph formatting using the wpautop filter, some PHP code originally developed by Matt Mullenweg. For most of the time that this blog has existed, I've disabled the wpautop filter using the following two lines in my theme's functions.php file: Read More »

grml

grml seems like an interesting Debian-based Linux Live CD. It seems interesting because “[it] includes a collection of GNU/Linux software especially for system administrators and users of texttools.”

Read More »

C++ base 10 to base 26

Last februari/march, I've been working again on an old obsession from ten years ago (when I was eighteen): to write a Minesweeper program that could solve very big maps as well or better than the best human player. At the time I did this because I thought that this was actually a million dollar challenge from the Clay Mathematics Institute. Now, I understand that the problem I solved at the time was not actually what was required, but still, once upon a time (such as early this year), I like to revisit the old problem and try to redo my old segfault generator as something that benefits from the fact that I'm now working with 10 years of programming experience instead of 1. Read More »

PHP include exploits

A year ago, my web host thoroughly explained how PHP include vulnerabilities can be exploited, hoping that better user education would leave less member-sites vulnerable to automated attacks by spammer scum.

Read More »