HTTPS Force Redirect
A quick Apache mod_rewrite snippet that forces all HTTP traffic to HTTPS, plus context on where to place it and what to watch for.
read more
InnoDB Corruption and Recovery Guide
A practical, step-by-step guide for diagnosing and recovering from common InnoDB corruption issues, covering first response, log analysis, checksum verification, and data restoration techniques.
read more
IP Tables Rate Limit Apache
A quick way to throttle inbound HTTP traffic to your Apache server using iptables, protecting it from traffic spikes and simple DoS attempts.
read more
IP Tables Rate Limit Bad Bots
Use iptables string matching and the recent module to drop connections from abusive bots that exceed a request threshold within a short window.
read more
Just a quick way to look at Inode Counts
A quick bash one-liner to identify which directories are consuming the most inodes on a Linux system, helping you pinpoint the source of ‘No space left on device’ errors when disk space still appears available.
read more
Locate Files Based on Time Modified with find
A quick reference for using find with -mtime and -mmin to locate files by how long ago they were last modified, including the common off-by-one confusion around the +1 flag.
read more