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.

Sending SMS notifications of md device failure

I just wrote a script to send sms from a unix machine and I thought it would be a good idea to add an sms notification to mdadm. Therefore I wrote this script, called handle-md-event.sh: Read More »

Bash script for sending SMS using Mollie

I signed up for a Mollie account so that I can send SMS's from my machines. To do that, I needed a bash script, so I wrote one: Read More »

LDAP search filter for Thunderbird and Zimbra

When configuring an LDAP addressbook, one thing that has given me a lot of trouble, is the LDAP filter. Here are two I use. Read More »

Debian network bridge setup for kvm/qemu

When you run virtual machines, the most convenient network setup is having a bridge between the virtual machine and your normal ethernet network. In Debian, I use the following config in /etc/network/interfaces to have such a bridge: Read More »

Making sure virtual machine guests shut down properly on a Debian host

I just installed libvirt and installed a vritual machine with virt-install. I also used virsh to configure it to autostart on machine start. This way, it integrates quite nicely with the host operating system. Read More »

Adding a recycle bin to a samba share

People are stupid and remove things accidentally. You can partly mitigate that by adding recycle bin functionality to a samba share. Read More »

Permissions on a samba share

When you mount a samba share without unix extensions enabled, you can set a GID, UID and permissions (on the client machine, at mount time) so you can adjust it to let non-root users use it. Read More »

Samba rounds filesizes off to whole MB’s

I noticed when I did 'du -hs' on a sambamount, I got a disk usage that was unrealistically high. I did some research, and it appears that Samba rounds off file sizes to whole MB units, to optimize for windows clients: Read More »

Bash quoting

I'm always confused by bash's quoting. I hope to put all my quote wisdom in this post and invoke other's quote wisdom in the comments. I'll give some examples of what I mean. Read More »

Removing unwanted grey values in scanning white papers

When doing automated scanning, like I do to for properly organizing paper administration, the resulting images can get quite large because the background has near-white information that is still very complex to save. Imagemagick has nice solution for that; -white-threshold x%. It also has -black-threshold, should it be necessary.

Read More »