Adding long form comments in shell script

- Posted in Uncategorized by
When I have a shell script that I want to save some complex comments or notes in, instead of putting a comment mark before each line, I often will put a heredoc after the exit 0, like this... :

macOS App Store Links

- Posted in Uncategorized by
10.15 Catalina: https://itunes.apple.com/us/app/macos-catalina/id1466841314?ls=1&mt=12 10.14 Mojave: https://itunes.apple.com/us/app/macos-mojave/id1398502828?mt=12 10.13 High

Converting certificates to/from Java keystore and OpenSSL

- Posted in Uncategorized by
Convert from Java Keystore to Openssl: Export: keytool -importkeystore -srckeystore {path_to}/keystore.jks -srcstorepass password -srckeypass password -destkeystore {path_to}/keystore.p12

Lego Cable Minder

- Posted in Uncategorized by
We needed something to stop the cables from falling under the desk when unplugging them from the laptop. Lego to the rescue! Attached to the desk with mounting tape.

Quick and Dirty Under-Sink Bathroom Storage

- Posted in Uncategorized by
I've been trying to clean our apartment. It is tough since we seem to have more stuff than space to put it all. We have to play a game of tetris overtime we need to put anything away. And it usually

Random One-Liners

- Posted in Uncategorized by
pmset -g assertions|grep -q '^ *UserIsActive *1$' && echo "User active" || echo "user inactive"

Queen Loft Bed

- Posted in Uncategorized by
I recently built my kids a queen size loft bed. I got the plans from the OP Loftbed Company. OP Loftbed has plans for Twin, Full, Queen, and King mattress sizes at three different heights. You can

Getting Serial Number, Manufacturer and Model from WMI

- Posted in Uncategorized by
Get Serial from command prompt: wmic bios get serialnumber or in powershell Get-WmiObject Win32_BIOS | Select SerialNumber Get Manufacturer and Model from command prompt wmic csproduct get

VMWare Player and HyperV in Windows 8.1

- Posted in Uncategorized by
When installing VMWare (or running) you get a message to uninstall HyperV if it is enabled - something to do with HyperV using hardware virtualization. Instead of uninstalling, you can turn it off:

Compressing files ala Finder via Command Line

- Posted in Uncategorized by
The Finder "Compress" option creates a pkZip archive. Here is how to compress and extract with the command line. Compress: ditto -c -k --sequesterRsrc --keepParent src_directory archive.zip To
Page 1 of 4