nabeards.com

Tech Notes (37)

Enabling Time Machine Backups on OpenWRT for GL.iNet Routers

As a digital nomad, having good backups is paramount to success. However, I have always felt it was a bad…

  • More

Run Tailscale on macOS Mojave 10.14

I have a photo tool that will not run on any macOS newer than Mojave, so I dug out an…

  • More

Using cURL to get just the HTTP status code

There are a few ways to accomplish getting just the HTTP status code for a URL using cURL, but many…

  • More

Test Network Quality from macOS with results similar to Fast.com

Excellent tool to quickly test the current network’s download and upload speeds. % networkQuality ==== SUMMARY ==== Upload capacity: 10.767…

  • More

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

Get hard drive serial number on RAID with storcli / megaraid

Error message received: ``` Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth 0 LSIMegaRAIDSAS9260-8i…

  • More

Preserving newlines / line breaks in BASH

declare f="fafafda adffd adfadf adfafd afd" echo $f echo "vs" echo "$f" Output: $./above fafafda adffd adfadf adfafd afd vs…

  • More

Hide object keys when console.log-ging in JavaScript

When doing a console.log on an object, you can overwrite the inspect prototype key to hide anything you don’t want…

  • More

Git search for filename across all branches

git log --all --name-only --pretty=format:%H -- {glob} example: git log --all --name-only --pretty=format:%H -- index*

  • More

Disable macOS reopen all windows on restart from the cli

defaults write com.apple.loginwindow TALLogoutSavesState -bool false

  • More

Docker error on CentOS with `noexec` `/tmp`

Error you get running docker: docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation…

  • More
Older Posts Page 1 of 2

Menu

  • Home
  • Presearch
  • Tech Notes

© nabeards

Toggle
This website uses cookies
Select which cookies to opt-in to via the checkboxes below; our website uses cookies to examine site traffic and user activity while on our site, for marketing, and to provide social media functionality.
Cookie settings
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
  • Required
  • Analytics
  • Functionality