Tech

Forcing PHP Error Reporting

Quite often I work on code which has its own error suppression, and sometimes I have been at a point where I need to get visibility of errors being raised by PHP. Using php_admin_value, I can enable error reporting on the vhost, as opposed to server-wide, and also it can not be overridden within the

Read More
Tech

Syncthing + OSX in less than 3 minutes

Syncthing is an amazing application which shares files between authorised machines securely. For me, I have all my files stored on my a dedicated server and all my other machines use syncthing to synchronise with the server and also the other machines. To install syncthing easily on MacOS, the following commands needs to be run (making

Read More
Tech

SMS Alerts from Nagios

I use Nagios a lot. If it’s not for the peace of mind that I know that my, and my clients infrastructure is monitored, its for the obsessive compulsiveness of the statistics. Admittedly, stats-wise I use Munin now, however, for monitoring everything I use Nagios. One of the awesome things about Nagios is how you

Read More
Tech

PHP RBL Checker Script

The following code checks an IP address (defaults to the visitors IP address) with 81 RBL servers worldwide! <?php $rbl = array( ‘asiaspam.spamblocked.com’, ‘bl.deadbeef.com’, ‘bl.emailbasura.org’, ‘bl.spamcop.net’, ‘blackholes.five-ten-sg.com’, ‘blacklist.woody.ch’, ‘bogons.cymru.com’, ‘cbl.abuseat.org’, ‘cdl.anti-spam.org.cn’, ‘combined.abuse.ch’, ‘combined.rbl.msrbl.net’, ‘db.wpbl.info’, ‘dnsbl-1.uceprotect.net’, ‘dnsbl-2.uceprotect.net’, ‘dnsbl-3.uceprotect.net’, ‘dnsbl.abuse.ch’, ‘dnsbl.ahbl.org’, ‘dnsbl.cyberlogic.net’, ‘dnsbl.inps.de’, ‘dnsbl.njabl.org’, ‘dnsbl.sorbs.net’, ‘drone.abuse.ch’, ‘duinv.aupads.org’, ‘dul.dnsbl.sorbs.net’, ‘dul.ru’, ‘dyna.spamrats.com’, ‘dynip.rothen.com’, ‘eurospam.spamblocked.com’, ‘fl.chickenboner.biz’, ‘http.dnsbl.sorbs.net’, ‘images.rbl.msrbl.net’, ‘ips.backscatterer.org’, ‘isps.spamblocked.com’, ‘ix.dnsbl.manitu.net’, ‘korea.services.net’,

Read More