Self-updating Bash Script Revised

Sunday, February 26th, 2012

I recently posted an approach for a self-updating bash script. Shortly after using it in production, I noticed a critical shortcoming. Due to the simple way in which I implemented my update checking (an MD5 sum over the script itself), changes to the script interpreter line (aka shebang) would cause the script to output that [...]

Check Write Permissions for Folder Hierachcy

Monday, January 2nd, 2012

While working on a bash script, I wanted to check if I could rm -rf a folder before actually attempting it and flushing the console with tons of write permission error messages. Upon failing to find what I wanted online, I constructed this beauty: find . \( -exec test -w {} \; -o \( -exec [...]

Self-updating Bash Script

Thursday, December 22nd, 2011

Note: There is a revised version of this script available. While working on the typo3scripts project, I wanted to implement a self-updating feature into each of the scripts as that seemed most convenient for where these scripts would be used. My initial approach was OK but left me wondering. So, here is the revised approach [...]

Increased Screen-Space for Ubuntu Server VM

Wednesday, October 13th, 2010

I often run Ubuntu server installations in VirtualBox. Sadly, this only provides you with the default console window. So most of the time I would additionally connect with Putty into the same VM, so that I can make use of a larger console. But recently it pissed me off so badly that I went hunting [...]

Run .bat file with a set of parameters

Saturday, November 28th, 2009

I am currently working on a project of larger scale than what I am usually working on. During this project I wrote several small tools which I personally feel are somewhat interesting. I’ll try to write up a few posts about some solutions I came up with to kinda special problems. This is the first [...]