Counting Connecting IPs on Port 80 with netstat and ss
Two quick one-liners that count how many unique remote IPs are connected to port 80, using either netstat or ss. Handy for spotting unexpected traffic or verifying that only expected clients are hitting your web server.
read more
Create Symbols and Resolve Stack (MySQL)
Learn how to extract dynamic symbols from the mysqld binary and use them to resolve a crash stack dump into readable function names.
read more
Filter RPM URLs with awk
A quick awk one-liner that pulls RPM package URLs from log files or package lists by matching lines containing both ‘autoinstall’ and ‘.rpm’.
read more
Fixing MySQL Invalid Keys
A quick bash script to identify and repair MySQL tables with invalid or corrupted MYI key files, then force a rebuild using USE_FRM.
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
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