Skip to content

Author: halfgaar

http://www.halfgaar.net/

Halfgaar is Wiebe. Wiebe is a contributing author on this weblog. He also has a lot of stuff (such as long, in-depth articles) on his personal website.

Wiebe works at YTEC, where he is a senior developer of customer-specific tailor-made software (“klantspecifieke maatwerk software“) for clients in a few select markets: wholesale, printing and healthcare.

Testing an OpenSSL connection

Simple command to test an SSL connection: openssl s_client -connect meel.halfgaar.net:993 -ssl3 Read More »

Ubuntu 10.10 with kernel 2.6.35-25 shutdown problem as Xen DomU

The current kernel in Ubuntu Maverick has a problem with shutting down when running as a Xen DomU (guest). When the VM has more than 1 VCPU, it won't reboot or shutdown. Read More »

Adding a disk to a RAID5 array on a 3Ware array with tw_cli

I wanted to know if I could extend the size of a RAID5 array on the 3Ware 9650SE, so I tried something. Read More »

Create a remote repository and branch with bzr

Create a shared remote bzr repository: bzr init-repo --no-trees sftp://development@server.example.com/srv/bzr/project/ bzr init sftp://development@server.example.com/srv/bzr/project/trunk bzr co sftp://development@server.example.com/srv/bzr/project/trunk project Read More »

Executing system commands from PHP with SUID executable.

If you want to execute system commands from something like PHP, you need a SUID executable which you can call from your PHP scripts. This is such a script. It could be extended to support parameters for the commands you want to execute, but that would be an enormous security risk, because then anybody can execute any command. If you need something as flexible as that, you need to think about adding some kind of security restrictions, like a list of allowed commands. Read More »

Configuring a Power DNS superslave server

Power DNS, as opposed to Bind, has the option to be a superslave. This means that it will initiate any zone transfer from trusted hosts, avoiding the need to configure each zone on both master and slave. Read More »

Roos Roos Loon installation and configuration weirdness

Because Roos Roos Loon has always been an application that stored its data files in the program files directory, special measures had to be taken to make sure the data files are backed up. I wanted them on a network drive. To that end, I always installed the entire program on a network drive. Read More »

Finding junction files in Windows 7 and exclude them with DeltaCopy

Windows 7 has a sort of hard link, a junction file, which it uses to link the old location "Documents and Settings" to /Users/. Because of all this junctioning, you can't just copy files with a Cygwin program like Deltacopy, because it will hang in infinite loop and copy a whole lot of things twice. Read More »

Bash script template

A template bash script, for when you need something overengineerd that works. Read More »

Bash parameter parsing

Here is a code snippet I use for parameter parsing: dohelp() { echo "Example script" echo "" Read More »