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.
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
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.
Swift – iOS – Read Language JSON File Into Controls
If you have an app that doesn’t use the internet or can’t use the internet but still want basic multi-language capability the below will help. First add some labels and buttons. In adding the buttons add it twice (once as IBOutlet and then IBAction) Create a JSON file, in my…