Skip to content

Instantly share code, notes, and snippets.

Chester Wood chetstone

  • Crestone, CO
Block or report user

Report or block chetstone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chetstone /
Last active Mar 30, 2020
Encrypted APFS Home Folder on Mac OSX

Encrypted APFS Home Folder on Mac OSX

Note: This is an update of Will Haley's excellent post to use APFS instead of CoreStorage.

I'll add to Will's warning below that this is a complex process on MacOS because the OS has a lot of assumptions on where things are. I

chetstone / nuke-firebase-db-and-users-referenced-therein.js
Last active Sep 24, 2018 — forked from cliffhall/nuke-firebase-db-and-users-referenced-therein.js
Nuke a Firebase Database and All User Accounts Referenced Therein
View nuke-firebase-db-and-users-referenced-therein.js
// This fork limits deletion to the first 10 users
// and deletes the data for each user separately (rather than wiping the whole database)
// Because of the firebase quota of 10 deletions/second.
// NOTE: Accounts that are not represented in your /users node will not be deleted!
// BLOG: There are other approaches, see:
'use strict';
// Get credentials and initialize firebase app
chetstone /
Last active Sep 13, 2018
Inspecting React-Native AsyncStorage in iOS Simulator

First, cd into the Async directory.

cd `xcrun simctl get_app_container booted $BUNDLE_ID data`/Documents/RCTAsyncLocalStorage_V1

Then review the manifest:

jq < manifest.json

Then to pretty-print a non-null value in the manifest:

chetstone /
Created Apr 15, 2018
Patching React-Native in a script run by npm/yarn postinstall
# Fix RN version 33
yarn list react-native |grep react-native |grep 0.33
if [ $? -eq 0 ];
echo "Checking that ReactNative v 33 is patched"
cd node_modules/react-native
patch -N -p1 --dry-run --silent < ../../notes/rn33.3x.patch >/dev/null 2>&1
if [ $? -eq 0 ];
chetstone /
Last active Jun 6, 2018
Notes on provider change from Colorado Central Telecom to Cielo

I have been considering using a new DNS server which was written up in USA today, quad9. They do threat analysis and block nefarious sites. Yesterday morning I was doing some pinging of quad9 and Google DNS on Colorado central telecom. I repeated the ping tests after the Cielo install.

They show that Cielo has 2 to 3 times the latency, and a lot more jitter. I wonder if this could be related to DSLReport bufferbloat grade of 'F'.? Probably not, I doubt if ICMP packets are buffered.

chetstone / mongoinstall.html
Last active Nov 9, 2017
Installing mongoldb on mac with homebrew
View mongoinstall.html
Install MongoDB on Mac OS X Yosemite
by César Trigo · November 6, 2014
from mongodbspain:
OS X Yosemite
Install MongoDB in our Mac is something simple and easy. There are two ways to install MongoDB under Mac OS X:
Manually, through the official binaries
chetstone /
Last active Sep 10, 2017
Update DL2 firmware from 1.4.4 to 1.4.7

DL2 Update

The trouble is the instructions on the Resol website for this update are wrong. I found helpful instructions on the way back machine, but even those had to be adjusted.

Here's what worked for me:

  1. Make sure you are on firmware version 1.4.5 or lower. Go to (replace with your DL2’s IP address)
  2. Format your SD card. Formatting on the Mac with MS-DOS(FAT) didn’t work for me. I ended up formatting it on my Panasonic camera.
  3. Insert the freshly-formatted card into the DL2, wait till the flashing green light turns solid. . .
View dl2_syslog.log
# cat /var/log/messages
Jul 9 22:51:07 resol-dl2 syslogd started: BusyBox v1.9.2
Jul 9 22:51:07 resol-dl2 init: init: starting pid 772, tty '/dev/null': '/sbin/klogd'
Jul 9 22:51:07 resol-dl2 init: init: starting pid 773, tty '/dev/tty3': '/usr/bin/tail'
Jul 9 22:51:07 resol-dl2 dropbear[763]: Running in background
Jul 9 22:51:07 resol-dl2 user.notice kernel: klogd started: BusyBox v1.9.2 (2010-06-26 22:19:34 CEST)
Jul 9 22:51:07 resol-dl2 user.notice kernel: Linux version ( (gcc version 4.2.1) #1 Sun Jun 27 06:22:13 CEST 2010
Jul 9 22:51:07 resol-dl2 user.warn kernel: CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Jul 9 22:51:07 resol-dl2 user.warn kernel: Machine: Atmel AT91SAM9260-EK
Jul 9 22:51:07 resol-dl2 user.warn kernel: Memory policy: ECC disabled, Data cache writeback
chetstone /
Last active Jul 1, 2017
Configurable per-project options for [prettier-emacs](

Given an invocation of prettier in package.json like this:

  "scripts": {
    "prettier": "prettier --write --single-quote --no-semi --trailing-comma es5 --print-width 80 \"*.js\""

Move the options to a config variable like this:

  "scripts": {                  
# This script automatically sets the version and short version string of
# an Xcode project from the Git repository containing the project.
# To use this script in Xcode, add the script's path to a "Run Script" build
# phase for your application target.
set -o errexit
set -o nounset
You can’t perform that action at this time.