Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -eu
# remount-circuitpy.sh -- remount a FAT disk, usually CIRCUITPY, so it works
#
# Works around bug where macOS 14.x causes file corruption on small FAT
# filesystems. The remount apparently causes older kernel FAT driver
# to be loaded. see https://github.com/adafruit/circuitpython/issues/8449
#
# Original author: Tod Kurt @todbot
DISKNAME=${1:-CIRCUITPY}
@ingydotnet
ingydotnet / gist:10952885
Created April 17, 2014 04:29
ETag not Changing
> curl --silent https://api.github.com/repos/aocole/skill-shot-list --dump-header head > out; echo; grep '^ETag' head; sha1sum out
ETag: "7b3a97ee2c14ca372c126dcc3773db1e"
816ebdfad5e3a0e5155f65ca8d44aa4dbbcdd79a out
> git hub unstar aocole/skill-shot-list
'aocole/skill-shot-list' unstarred
> curl --silent https://api.github.com/repos/aocole/skill-shot-list --dump-header head > out; echo; grep '^ETag' head; sha1sum out
ETag: "7b3a97ee2c14ca372c126dcc3773db1e"
ea2aab4fd641e6a6ffe37ecf4ab50b1737497fc5 out