Regex Tutorial – Lookahead and Lookbehind Zero-Width Assertions
I’ve finally got my head round lookahead regular expressions. They’ve been causing me pain… and here’s the page that brought the relief.
Linux, Apache, MySQL and PHP
I’ve finally got my head round lookahead regular expressions. They’ve been causing me pain… and here’s the page that brought the relief.
After recently installing an SSL certificate on one of my servers, I decided it was time I told myself how I do it.. rather than guessing from scratch each time.
In mythtv-setup under ‘Input connections’ (or something) type /home/mythtv/.mythtv/sendkeys.sh Then create this sendkeys.sh script in the directory mentioned above. #!/bin/sh for digit in $(echo $1 | sed -e ‘s/./& /g’); do red_eye /dev/ttyS0 $digit 2 Read more…
This first script will list the perl modules you have installed and the version number. #!/usr/bin/perl # use ExtUtils::Installed; my $instmod = ExtUtils::Installed->new(); foreach my $module ($instmod->modules()) { my $version = $instmod->version($module) || “???”; print Read more…
This chunk of code will show you a nice list of ports on which you have something listening. #!/bin/sh # listen – parse netstat -an output for listeners netstat -an | awk ‘ BEGIN { Read more…
I just compiled this list of sites I regularly use and think are top notch for a friend. Thought it was worth sharing. Firefox and extensions – web browser http://www.mozilla.org/products/firefox/ https://addons.mozilla.org/extensions/moreinfo.php?id=60 – Essential extension. I Read more…
While trying to get a cgi script working on a PLesk managed box, I came across this error in /etc/httpd/logs/suexec_log cannot stat program: (blahdeblah.cgi) An explanation of this vague and misguiding message can be found Read more…