Skip to content

Instantly share code, notes, and snippets.

View geoffeg's full-sized avatar
🏠
Working from home

Geoffrey Gallaway geoffeg

🏠
Working from home
View GitHub Profile
@geoffeg
geoffeg / route.json
Last active August 28, 2020 19:44
route api response
{
"route" : "KMSY SQS J35 MEM KSTL",
"summary" : {
"distance" : 553,
"time" : 83,
"ground-speed" : 436,
"altitude" : 37000
},
"segments" : [
{
/* Copyright 2021 Craig Gardner
* ~/qmk_firmware/keyboards/leafcutterlabs/bigknob/keymaps/zoom
* To build:
* qmk compile -kb leafcutterlabs/bigknob -km zoom
*/
#include QMK_KEYBOARD_H
#define _MAIN 0
@geoffeg
geoffeg / nixos-luks-btrfs.sh
Last active April 28, 2024 00:29
Encrypted NixOS (including swap and /boot) using btrfs
# Notes:
# * https://wiki.archlinux.org/title/dm-crypt/Device_encryption
# * https://nixos.wiki/wiki/Full_Disk_Encryption
# * https://mutschler.dev/linux/ubuntu-btrfs-20-04/#add-a-key-file-to-type-luks-passphrase-only-once-optional-but-recommended
# * https://discourse.nixos.org/t/how-to-unlock-some-luks-devices-with-a-keyfile-on-a-first-luks-device/18949
echo "Enter passphrase for encrypted devices:"
PASSPHRASE=$(read -s PASSPHRASE)
echo $PASSPHRASE | cryptsetup -v luksFormat /dev/sda3