Skip to content

Instantly share code, notes, and snippets.

View athornton's full-sized avatar

Adam Thornton athornton

View GitHub Profile
@athornton
athornton / locktest.ipynb
Last active July 31, 2019 22:49
Test lock types on various filesystems
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/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"