nabeards.com

Tech Notes (33)

Time Machine backups ignoring NPM modules

My Time Machine backups started taking an insane amount of time to complete. After some research, I was able to…

  • More

Send Docker container traffic through second VNIC on Oracle Cloud Compute Instances

I have a need to route all traffic to a running Docker conainer through a second network interface card (NIC)…

  • More

Grep stderr to suppress warnings in crontab entry

I needed to setup a crontab entry to restart a node process every week after Let’s Encrypt renewed my certificate.

  • More

Converting any binary to base64 using FileReader and Blob

To base64-encode a Uint8Array with arbitrary data (not necessarily UTF-8) using native browser functionality: const base64_arraybuffer = async (data) =>…

  • More

Locking and Unlocking a file in macOS from the cli

To lock the file: chflags uchg {file path} To unlock the file: chflags nouchg {file path} Keywords: lock, unlock, command…

  • More

Command line batch file rename with regex

for file in A2B*.bif; do mv "$file" "${file//A2B/a02b}"; done make lowercase: for folder in *; do mv -nv "$folder" "`echo…

  • More

Make iPhone HDR video not washed out in macOS and Photos

Install macOS iMovie 10.2 or later or iOS iMovie 3.0 or later Bring the clip into a new iMovie project…

  • More

git get list of changed files

git diff --name-only <SHA, tag start> <SHA, tag end> Or with the actions performed: git diff --name-status <SHA, tag start>…

  • More

Using `curl` to check a TLS certificate on a websocket (`ws` or `wss`)

Checks the TLS cert on the connection: curl -v \ --insecure \ --include \ --no-buffer \ --header "Connection: Upgrade" \…

  • More

Permanent shell history in zsh

I like to keep a permanent record of my shell commands so I can search back through them later. This…

  • More
Older Posts Page 1 of 4

Menu

  • Home
  • Presearch
  • Tech Notes

© nabeards