Sometimes the database daemon crashes (because the server ran out of swap space for example). This can cause the databases to be damaged. Finding and repairing the database table in question can be an arduous task, especially if you have a lot of databases. This script runs both repair and optimize on all tables. You’ll …
Continue reading repair and optimize all tables
Category:Shell scripts
Usually written in bash, usually written by me. Credit given when not written by me.
Automatically block asshole bots
There’s a great many bots out there that set off so many requests webservers can get swamped. This script searches for particular user agents, finds the originating ip address (ipv4 or ipv6) and then blocks the whole subnet. This is specifically done for yandex and MJ12bot who use a large amount of subnets. This script …
Continue reading Automatically block asshole bots
Restart all daemons
Sometimes a server runs out of swap space.