This function will get the local time based on the time zone difference from UTC
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
Mac Terminal – PowerShell on Mac OS
Resource: https://blog.azureandbeyond.com/2016/11/11/powershell-azure-and-macos-absolutely/
Mac Terminal – Random Readable Password
I recently was challenged to create a random readable password for Mac OS. While I designed this for Mac OS it’s likely it will work with little to no changes on any UNIX system. Password format was two digit number then a word followed by another word with special characters…
UNIX – List Files With Permissions In CHMOD Numbers
If you’re on UNIX you know ls will list files in a directory but typically you’ll get something like You can simily stat the file(s) with the below What if we work with stat and make it easier?
UNIX – SED Remove Comment Lines
This script will remove all lines that start with # along with all comments. Whatever file you choose I suggest you view first then execute
Mac OS X Terminal – Parallels – Reset Windows User Password
Forgot your password to your Parallels Windows Virtual Machine? Power up your Windows VM then run this script to list all machines as you need the ID You’ll see something like this Copy the UUID minus the { } brackets Run this next piece for each user you want to…
Mac OSX Terminal – Get Stored Wireless (Wi-Fi) Password
Addition to Find & Scan Wireless Networks the additional line will require a password but then display the stored password for the defined router name.
UNIX – Terminal – Oh My Zsh Setup
As much as I like Oh My Zsh sometimes you have to go back to original terminal as not all things are supported. NOTE: This is part of a setup I do for new computers, see HomeBrew – Mac OS Setup For more information on Oh My Zsh, see https://github.com/robbyrussell/oh-my-zsh
Mac OS X Terminal – New Computer Setup Script
This is a collection of configurations for the setup a new Mac in a business environment.
PowerShell – Create Zip File
Scenario, you’re on a Windows Server and don’t want to or can’t install a zip program. This script will help you create a zip file without any special program. Caveat: Currently this does not give you any kind of status so it could seem to be doing nothing for a…