Extracting Email Addresses from TCP Streams
Here's a quick example of using tshark to extract email addresses from TCP streams. Let's say some application on your server is sending emails and...
Obfuscating Passwords in Shell Scripts
At the risk of repeating myself, I must say that this article is about obfuscating passwords - rendering obscure, unclear, or unintelligible - not hiding...
Export WP Posts and Sync to Sharepoint
Long story short: old wiki is overloaded and broken; new wiki is not a wiki but SharePoint - a glorified file server; people are...
Croncal – the Cron Calendar
The croncal is a clever Perl script that reads entries in your crontab and outputs a schedule, showing the time when cron jobs will run.
This can...
Plotting Log Data
While I am on the subject of selecting time ranges from logs, a practical application presented itself. A lonely server in a far-away land...
Generating Random Text Files for Testing
Sometimes you need dummy folder structures populated with random data for testing your various scripts and processes - backups, file transfers, encryption, compression, etc....
Install and Configure Etckeeper
Etckeeper is a handy tool that uses git to keep track of changes to anything in /etc (or any other folder you choose). It's very simple...
Using IPTables to Allow Access to Private Networks
Below is a quick example of how to use iptables to allow port access for all types of private networks. In this case we're allowing...
Use PowerCLI to Change NIC Type
This is a quick PowerCLI script that reads from a list of VM names and for each VM with network adapter type "E1000" changes...