Blog Archives

Forcing Linux To Shutdown Or Reboot

[cc lang=’bash’ line_numbers=’false’]shutdown -r NOW[/cc] [cc lang=’bash’ line_numbers=’false’]halt[/cc] [cc lang=’bash’ line_numbers=’false’]reboot[/cc] not working for you? To force a shutdown: [cc lang=’bash’ line_numbers=’false’]echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger[/cc] And for a reboot: [cc lang=’bash’ line_numbers=’false’]echo 1 > /proc/sys/kernel/sysrq echo

Tagged with:
Posted in Command Line Tricks, Servers, Tech Blog

PHP mail() with Ubuntu Desktop and Gmail

Recently I was adapting a newsletter plugin for WordPress and needed the PHP mail() function for testing. However an Ubuntu desktop install is missing Sendmail – the MTA that PHP expects to find on a Linux PC. I use a

Tagged with: , ,
Posted in Development, Tech Blog

PHP: The include() include_once() performance debate

Updated with more tests on 2010-05-16. Click here to jump to the 2010-05-16 update… The conventional wisdom always said that PHP’s include()/require() was quicker than include_once()/require_once(), but recently I came across an interesting post by Arin Sarkissian which suggests otherwise.

Tagged with: , , ,
Posted in Servers, Tech Blog, Web

Migrating IMAP Email The Easy Way

Moving email servers has always been a royal pain for me. I’ve tried many of them over the years, and migrated from nearly as many of them. However the last couple of times I put myself through the pain I

Tagged with: , , , ,
Posted in Command Line Tricks, Tech Blog

Debug your IMAP server with Telnet

Email by IMAP rocks – there are so many benefits to using it over POP3, particularly in an office environment. However many IMAP clients really suck when it comes to manipulating accounts with large messages. We recently watched a server

Tagged with: , , ,
Posted in Command Line Tricks, Servers, Tech Blog