When you need to create a log file or some dated archive The format can be modified slightly based on date formatting.
Category: Mac OSX
Posts in this category are specific to Mac OS and may not work on other UNIX based systems.
UNIX Bash – Website Monitor
Reference: http://unix.stackexchange.com/questions/84814/health-check-of-web-page-using-curl
UNIX Terminal – Compare Directory On Different Servers
When working with two or more servers it’s important to know that the files are the same on all servers involved. This script will assist in showing the differences between the servers without actually acting on the differences (will not copy any files). Key part of the command below is…
UNIX Bash – Get Latest File Name Based On DateTime
Working on a backup and restore script I often need only to know what the latest backup/archive file is, this command helps you learn that.
Mac OSX Terminal – Get Active Interface
This will let you know which network interface you are actively using should you have Wi-Fi and Ethernet connected. Get name of network interface
Mac OSX Terminal – Disable IPv6
This will first disable IPv6 for Wi-Fi then go through all Ethernet hardware and disable the IPv6 Similar to before this will first enable IPv6 for Wi-Fi then go through all Ethernet hardware and enable the IPv6