If you simply want uptime formatted this small script will help. Uptime by itself will display similar to: 20:25:48 up 3 days, 8:14, 1 user, load average: 2.07, 2.17, 2.35 Formatted using the code above will display similar to: 3 days, 8 hours, 15 minutes.
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
UNIX – Pi-Hole Project – Statistics
If you are using Pi-Hole you may find this script useful Currently this is designed to run on the server that is running Pi-Hole but as I have more than one I want to monitor I will soon have an update for additional. First make sure you update your /var/www/html/admin/scripts/pi-hole/php/data.php…
Mac OS X Terminal – Create Bootable OS X Installer
Need to create a thumb drive installer for Mac OS? This script will help you out
NMAP – Find Machines On Your Network
NMAP (a form of ARP list) is a tool for scanning your network for machines that are up or down along with pulling some helpful information from the machines that are up. Similar to Remotely Find Raspberry Pi IP but this is a bit more in-depth First install nmap if…
HomeBrew – Mac OS Setup
I use a Mac for my primary computer and sometimes I need to setup a new VM similar to my computer for testing. Here is the basic setup that I use HomeBrew for. I’ll add more later as I remember more or use it more. NOTE: If you receive an…
DigiCert – OpenSSL Certificate Conversion
I work with digicert® to get certificates. The way we get certificates sometimes requires me to convert the certificates, below is the process I use to get the formats for what I may need. This script assumes you have a directory with only the .csr file and the .zip file…
UNIX – Display Network Information
The following code will give you network specific information about your server/computer.
Mac OS X – Get Network Information
Every once in a while you need to get some basic network information from your Mac or a Mac you are supporting, this script below will help get you some helpful information.