Skip to content

Instantly share code, notes, and snippets.

View resume.json
"basics": {
"name": "Zane Hitchcox",
"label": "(Hardware/Software) (Engineer/Hacker)",
"email": "",
"phone": "865.236.0804",
"url": "",
"summary": "I'm a hardware and software engineer and hacker.\nI like solving challenging problems and creating innovative technology.\nMostly web focused and early adopter of things like NodeJS, React, Rust, Docker, Kubernetes, WASM/WASI, etc.",
"location": {
"city": "Knoxville",
View gist:7fe9e9b4f60a021e378938f592dd5284
make clean
emconfigure ./configure --host=x86_64-gnu-linux --prefix=$(readlink -f prefix) --disable-imager --disable-defrag --disable-tls --disable-uuidd --disable-mmp --disable-tdb --disable-bmap-stats --disable-nls --disable-fuse2fs --disable-fsck --disable-libuuid --without-pthread CFLAGS=""
cp -f ../e2fsprogs/lib/ext2fs/gen_crc32ctable ./lib/ext2fs/gen_crc32ctable
cp -f ../e2fsprogs/util/subst ./util/subst
chmod +x ./util/subst
emmake make
echo 'resize2fs.js: $(RESIZE_OBJS) $(DEPLIBS)
View snippets.ts
const zbug = (...args: any[]) => {
const stack = ((new Error).stack?.split('\n') as any[])
.map((line: string) => line.substring(line.lastIndexOf('/') + 1));
const _args: any[] = [...stack?.slice(2,3), ...args];
// @ts-ignore
return _debug('node-raspberrypi-usbboot')(..._args);
View Dockerfile.template
FROM ubuntu
RUN apt-get update
RUN apt-get install -yqq apt-utils
RUN apt-get install -yqq vim
# # device tree
RUN apt-get install -yqq i2c-tools
RUN apt-get install -yqq device-tree-compiler
# dtc -I fs /sys/firmware/devicetree/base > cur.dts
zwhitchcox / sbc-imx8-no-wp.dts
Created Jan 19, 2022
etcher pro device tree
View sbc-imx8-no-wp.dts
/ {
compatible = "compulab,sbc-imx8\0compulab,cl-som-imx8,rev1.1\0compulab,cl-som-imx8\0fsl,imx8mq";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "CompuLab CL-SOM-iMX8 rev1.1 on SBC-iMX8";
cpus {
zwhitchcox / console.log.js
Created Aug 18, 2020
Console.log variables and names without retyping in Javascript
View console.log.js
// Simple Public Service Announcement
// You can add variables to your variables on console.log
// by using the es6 shorthand
// I just realized that
zwhitchcox / launch.json
Created Dec 27, 2019
vs code debug rust codelldb
View launch.json
"version": "0.2.0",
"configurations": [
"type": "lldb",
"request": "launch",
"name": "Cargo test",
"cargo": {
"args": ["test", "--no-run", "--lib"]
View gist:82be19a9ba281737baf01d258914335f
// Place your key bindings in this file to override the defaults
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
zwhitchcox / install-vim-with-python
Last active Sep 13, 2019
Bash Script to Install Vim With Python Support
View install-vim-with-python
PY2_CONFIG_DIR=$(sudo find /usr/lib -type d -regex ".*python2.[0-9]/config[^/]*")
PY3_CONFIG_DIR=$(sudo find /usr/lib -type d -regex ".*python3.[0-9]/config[^/]*")
if ( [ -d "$PY2_CONFIG_DIR" ] || [ -d "$PY3_CONFIG_DIR" ] ) ; then
View go-exercise-web-crawler.go
package main
import (
type Fetcher interface {
Fetch(url string) (body string, urls []string, err error)