Scripts
From 5dollarwhitebox.org Media Wiki
The scripts here are just quick hacks. Something I threw together (probably to accomplish something at work). Should they ever be found to be something widely useful, they will eventually become a Project.
Please note, you will likely need to modify the scripts in some way to make them work for you... they are usually written for a specific system, file layout, etc.
LINUX:
- installRDJ.pl: all in one rules du jour installer (downloads rdj, installs, creates config file, creates cronjob)
- if_file_contains.sh: locate files, and grep their content for a query (simple)
- bandwidth_report.sh: report on bandwidth usage (plesk specific)
- pretty_sar.sh: takes all the sar averages for cpu/ram/swap/disk and makes it pretty
- rotate_staging_dir.sh: rotate staging/test directory into the production directory
- sync_lb_servers.pl: sync load balanced servers via rsync/ssh
- update_all_passwd.pl: written for a specific use to update all users in passwd matching a pattern
- update_all_htpasswd.pl: similar to update_all_passwd.pl but for htpasswd (apache auth) user file
