For many years, issues with the r8169 module have plagued Debian and related Linux distributions such as Ubuntu. You’ll see lots of ifconfig errors and stuff like this on desktop mainboards with a Realtek NIC: Oct 29 07:40:32 c1100d335 kernel: [1996163.743022] NETDEV WATCHDOG: eth0: transmit timed out Oct 29 07:40:32 c1100d335 kernel: [1996163.777667] r8169: eth0: […]
There are many how-to’s and examples on the net on how to enable MSSQL support in PHP on a Cpanel box, but none are 100% correct nor easy to maintain. I needed a solution that would be simple to maintain — in other words, something that didn’t have to be done over and over each […]
Convert a XenServer HVM domain to PV (paravirtual) and back again with this simple script.
With SMP (multi-CPU) VM’s on Xen or XenServer running Debian Lenny you need to add the following kernel options if you’re getting soft lockups: clocksource=pit nohz=off
How to install ffmpeg, flvtool2, mplayer, mencoder and ffmpeg-php on a Cpanel / CentOS server.
Recursively find many PHP shell scripts and PHP exploits with these simple one-liners.
When you’ve got dozens or more CentOS boxes to install Ksplice Uptrack on, this single cut-and-paste method lets you do it in one click. Remember to replace ACTUAL_KEY with your Ksplice access key.
Here are a few shortcuts for common monitoring tasks with TCPdump. I will update this post over time as new needs arise. Monitor traffic to/from a single port: tcpdump -n -i eth0 ‘port 53’ Monitor and decode traffic to/from or regarding a particular domain or IP (there may be a better way, this is quick […]
The issue was that old/stale tmp files are not getting cleaned by tmpwatch. This is because CSF/LFD regularly reads all tmp files scanning for trojans and other exploits, thus changing the ‘last access’ time so tmpwatch wouldn’t delete anything. I wrote a script to manually clean out session that are over 7 days old. Other […]
Auto-playlist generator for converting any PHP enabled website hosting account into an on-demand stream server.