Skip to content

Instantly share code, notes, and snippets.

Avatar

Cole Mickens colemickens

View GitHub Profile
View gist:1d85893eceaab447274c9e23895fe189
Dec 08 16:44:23 slynux kernel: usb 1-5.4: new full-speed USB device number 28 using xhci_hcd
Dec 08 16:44:23 slynux kernel: usb 1-5.4: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 4.37
Dec 08 16:44:23 slynux kernel: usb 1-5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 08 16:44:23 slynux kernel: usb 1-5.4: Product: Yubikey 4 OTP+U2F+CCID
Dec 08 16:44:23 slynux kernel: usb 1-5.4: Manufacturer: Yubico
Dec 08 16:44:23 slynux kernel: input: Yubico Yubikey 4 OTP+U2F+CCID as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.4/1-5.4:1.0/0003:1050:0407.0035/input/input61
Dec 08 16:44:23 slynux kernel: hid-generic 0003:1050:0407.0035: input,hidraw10: USB HID v1.10 Keyboard [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-5.4/input0
Dec 08 16:44:23 slynux kernel: hid-generic 0003:1050:0407.0036: hiddev98,hidraw11: USB HID v1.10 Device [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-5.4/input1
Dec 08 16:44:23 slynux pcscd[30419]: 11477515 ifdhandler.c:150:CreateChannelByNameOrChan
View deploy.sh
#!/usr/bin/env bash
set -x
set -euo pipefail
# TODO: maybe we need to upload our own AMI or something?
REGION="us-west-2"
#AMI_ID="ami-073449580ff8e82b5" #NixOS-20.03.2351.f8248ab6d9e-aarch64-linux
#AMI_ID="ami-09d0dda914bed4052" # Amazon Linux 2
AMI_ID="ami-053c71bfc2f2ae88d" # NixOS-20.09alpha417.a780c60f9f7-aarch64-linux
View deploy.sh
#!/usr/bin/env bash
set -x
set -euo pipefail
# TODO: maybe we need to upload our own AMI or something?
REGION="us-west-2"
AMI_ID="ami-073449580ff8e82b5" #NixOS-20.03.2351.f8248ab6d9e-aarch64-linux
#AMI_ID="ami-053c71bfc2f2ae88d" # NixOS-20.09alpha417.a780c60f9f7-aarch64-linux
View gist:e57b4781d8cb34f7ab5adbc4ecc551ff
[accounts]
[accounts.test_gcal_api__gmail_com]
format = "imap"
identity = "test.gcal.api@gmail.com"
root_mailbox = "$HOME/.local/share/meli/test_gcal_api__gmail_com"
server_hostname = "imap.gmail.com"
server_password_command = "/nix/store/w9wc0d31p4z93cbgxijws03j5s2c4gyf-coreutils-8.31/bin/cat /run/secrets/gmail-meli-pw.txt"
server_port = 993
server_username = "test.gcal.api@gmail.com"
View somefile.dts
/dts-v1/;
/ {
compatible = "google,b1c1-sdm845\0qcom,sdm845";
qcom,board-id = <0x21505 0x00>;
model = "Google Inc. MSM sdm845 B1 DVT1.1";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
qcom,msm-id = <0x141 0x20001>;
View full.log
source> trying https://github.com/swaywm/sway/archive/657587964e5d8e444ac64829a0aab309c25ff50f.tar.gz
source> % Total % Received % Xferd Average Speed Time Time Time Current
source> Dload Upload Total Spent Left Speed
source> trying https://github.com/swaywm/wlroots/archive/45c1a3621cc6874e5b5d9694015241668980df5d.tar.gz
source> % Total % Received % Xferd Average Speed Time Time Time Current
source> Dload Upload Total Spent Left Speed
source> 100 156 100 156 0 0 1026 0 --:--:-- --:--:-- --:--:-- 1033
source> 100 153 100 153 0 0 421 0 --:--:-- --:--:-- --:--:-- 421
source> 100 462k 0 462k 0 0 1142k 0 --:--:-- --:--:-- --:--:-- 5777k
source> unpacking source archive /build/45c1a3621cc6874e5b5d9694015241668980df5d.tar.gz
View l
(bootloader) product:blueline
(bootloader) serialno:94HX1ZAW9
(bootloader) variant:SDM UFS
(bootloader) max-download-size:0x10000000
(bootloader) slot-suffixes:_a,_b
(bootloader) version-bootloader:b1c1-0.2-6374987
(bootloader) version-baseband:g845-00107-200409-B-6382632
(bootloader) secure-boot:PRODUCTION
(bootloader) secure:yes
(bootloader) hw-revision:MP1.0
View gist:5aa7e4b4cef3f4ecfd0033192dd338e2
pool: tank2
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://zfsonlinux.org/msg/ZFS-8000-8A
scan: scrub repaired 282K in 0 days 00:03:06 with 259 errors on Wed Sep 16 20:11:02 2020
config:
View gist:790aa973b2249a383f38a297a91ac294
function instantiate() {
machine="${1}"; shift
# do it
true
#drv="$(nix eval --pure-eval ".#nixosConfigurations.${machine}.config.system.build.toplevel")" # TODO: why????
set -e
drv="$(set -eu; nix --experimental-features 'nix-command flakes' --pure-eval \
eval \
--raw ".#machines.${machine}")"
drv="$(set -euo pipefail; nix --experimental-features 'nix-command flakes' --pure-eval \
View gist:5b6daaf334ca51b383b8f0b86812eec8
+ ssh colemickens@aarch64.nixos.community \
'nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-20.03.tar.gz -p cachix \
--command "echo /nix/store/w71nsc8cf7jrg1wpm5psqxr1d4frnx2m-nixos-system-raspberry-20.09.20200731.e197520 | env CACHIX_SIGNING_KEY=eREDACTED== cachix push colemickens" >/dev/stderr'
compressing and pushing /nix/store/71fg94rcf2fqfxwq221c7mdn3yf09wjb-system-path (4.31 MiB)
compressing and pushing /nix/store/apalrjqm9i9iscgl9kqpgsmj87myngsg-etc (33.73 KiB)
compressing and pushing /nix/store/b3ajfqw3s0a1ybdcyhczw2pj92a5shhr-user-units (9.10 KiB)
compressing and pushing /nix/store/f6x4sk20gncmbvjhh7r2mv93mrw1lz8z-unit-firewall.service (1.78 KiB)
compressing and pushing /nix/store/gzd3cd0raprqik1mk8x6zpwmildy9rdd-unit-polkit.service (1.23 KiB)
compressing and pushing /nix/store/ihjqi107r7m6p35kmpp7s85lhyds5f05-system-units (97.42 KiB)
compressing and pushing /nix/store/kd47ikfwq0zx4ljw66gm4jxyi9ibbghw-firewall-reload (1.95 KiB)
You can’t perform that action at this time.