Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Thornton athornton

View GitHub Profile
@athornton
athornton / locktest.ipynb
Last active Jul 31, 2019
Test lock types on various filesystems
View locktest.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ipympl.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View badidea.sh
#!/bin/bash
DEVICE="/dev/rdisk0s2"
INITIAL_CHUNK=$((64 * 1024 * 1024))
# Probably want larger on a modern Mac
FINALSIZE=$(( 64 * 1024 )) # 64K is easy enough to eyeball
# Important to split up the target this way
# so that the script doesn't just find itself!
TARGET="frostbit"
TARGET="${TARGET} moon"