Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
Mac OSX Terminal – Clear Oh My ZSH History
If you have fallen in love with Oh My Zsh you likely have at one point realized it currently lacks the “history -c” option to clear your terminal history. This code below will help with that.
Mac OSX Terminal – Wi-Fi & Ethernet Switch
Sometimes you need to turn off Wi-Fi and turn on Ethernet and vice-versa NOTE: Important to know what your configuration is.
UNIX – Laptop Setup
This is my basic setup for a laptop/desktop that I have for my family to use. Debian Based Should work on Debian, Ubuntu (all Ubuntu flavors) Red Hat Based Should work on Red Hat, CentOS, and Fedora
Raspberry Pi – Install Firefox and Thunderbird on Raspbian
Reference: https://www.raspberrypi.org/forums/viewtopic.php?t=150438
Azure CLI – Convert VM Dynamic IP to Static IP
If you create your VM with Dynamic IPs DHCP will grab the first available IP but some VMs are best on a static IP. This script below will get the existing IP of the ipconfig and reassign it to the same ipconfig as a static IP.