Initialize static arrays in Freepascal

…Just in case I stumble again over that nasty “Variable of a managed type does not seem to be initialized” message and forgot how to get rid of it: Create a type definition for the array you want to initialize, then use that defintion in “var”-section, too. By doing so, we can use the “Default”-function… Continue reading Initialize static arrays in Freepascal

Linux batch rename one-liner

Just in case I need it again and don’t remember: for f in <OLDPATTERN>; do mv “$f” “$(echo “$f” | sed ‘s/<OLDPATTERN>/<NEWPATTERN>/’)”; done And to batch-rename strings in all text-type files in a folder: for f in <FILEPATTERN>; do if [[ $(file “$f” | grep “text”) != “” ]]; then sed -i ‘s/<OLDPATTERN>/<NEWPATTERN>/g’ “$f”; fi;… Continue reading Linux batch rename one-liner

Get “yum” on old CentOS working again

If you have some older CentOS VMs for testing or cross-compiling, you may run into the problem that you can’t install or update the system via “yum” any more: # yum update Loaded plugins: fastestmirror, priorities Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/… Continue reading Get “yum” on old CentOS working again

Using command timeouts inside of bash scripts

Sometimes one needs to terminate a command after a period of time and this particular command does not offer a timeout function itself. This could be a real show-stopper when it’s about running commands synchronously inside of scripts. Somehow I didn’t manage to get “timeout” from the coreutils working correctly inside of a bash script… Continue reading Using command timeouts inside of bash scripts

New remix @ soundcloud

Yet another remix I just finished that had been lying around for far too long. This time it’s Tannengruen’s ode to the love called “Der Kuss” (the kiss). Downloads are enabled, enjoy!

OwnCloud: Fix ‘home storage for user not writable’ error

The popular problem… I recently went into trouble with an OwnCloud installation on one of our servers. A few users had problems accessing any files or even upload new ones with errors like “404 not found” or “Forbidden”… It figured out, that these problems must be connected to the move of the datastore-folder some time… Continue reading OwnCloud: Fix ‘home storage for user not writable’ error

Telekom Glasfaseranschluss (FTTH) mit FRITZ!Box 7390

Vorwort In diesem Artikel geht es um die Einrichtung einer älteren FRITZ!Box 7390 an einem aktuellen Telelkom Glasfaser-Anschluss über das bereitgestellte Modem (ONT). Generell kann man wahrscheinlich davon ausgehen, dass die meisten FRITZ!Boxen der letzten Jahre welche die Funktion “Internetzugang über ein externes Modem” bieten für den Betrieb an einem Telekom FTTH Zugang geeignet sind.… Continue reading Telekom Glasfaseranschluss (FTTH) mit FRITZ!Box 7390

Running Jenkins with SSL on default HTTPS port

Note: Since Jenkins is a java application running with limited system permission, it’s socket listeners can’t listen on ports below 1024. So if you want to run Jenkins with HTTPS enabled on the default HTTPS-port 443, you need some work around. Basic solution (complete): Here are the complete steps I took when switching one of… Continue reading Running Jenkins with SSL on default HTTPS port