Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kai Hendry kaihendry

🏠
Working from home
Block or report user

Report or block kaihendry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:da83e005cfbf4214cea483a92e5b8691
[hendry@t480s bugzilla]$ git rev-parse HEAD
e88ec7fdc2ea995c669a26af39be0edc46065f8b
[hendry@t480s bugzilla]$ git rev-parse 5.2
6eafd6a807ede6f2ca9e397d1d95fe44404a74c0
[hendry@t480s bugzilla]$ git diff 5.2
[hendry@t480s bugzilla]$ git diff ...5.2
View gist:87d3dd6100290600361c27f1b0e22f89
hendry@knuckles ~ $ ps aux | grep bitcoin
root 736 0.1 0.0 916 612 ? Ss Sep25 5:54 runsvdir -P /run/runit/runsvdir/current log: to lock directory: /var/log/bitcoind: temporary failure svlogd: fatal: no functional log directories. [#] ip link add wg0 type wireguard Error: Unknown device type. Unable to access interface: Protocol not supported [#] ip link delete dev wg0 Cannot find device "wg0" svlogd: warning: unable to lock directory: /var/log/bitcoind: temporary failure svlogd: fatal: no functional log directories.
root 770 0.2 0.0 896 524 ? Ss Sep25 6:50 runsv bitcoind
root 818 0.0 0.0 908 4 ? S Sep25 0:00 svlogd -t /var/log/bitcoind
hendry 22361 0.0 0.0 1716 520 pts/2 S+ 13:45 0:00 grep --exclude-dir=node_modules --color=auto bitcoin
hendry@knuckles ~ $ sudo sv status bitcoind
down: bitcoind: 6784s, normally up; down: log: 0s, normally up, want up
@kaihendry
kaihendry / gist:c75bdd58fa612db94c1fb2af56bcb7bf
Created Sep 24, 2019
items__0::readings::pm25_one_hourly{location: east}
View gist:c75bdd58fa612db94c1fb2af56bcb7bf
# HELP items__0::readings::pm25_one_hourly::central Retrieved value
# TYPE items__0::readings::pm25_one_hourly::central gauge
items__0::readings::pm25_one_hourly::central 23
# HELP items__0::readings::pm25_one_hourly::east Retrieved value
# TYPE items__0::readings::pm25_one_hourly::east gauge
items__0::readings::pm25_one_hourly::east 55
# HELP items__0::readings::pm25_one_hourly::north Retrieved value
# TYPE items__0::readings::pm25_one_hourly::north gauge
items__0::readings::pm25_one_hourly::north 31
# HELP items__0::readings::pm25_one_hourly::south Retrieved value
View gist:3766c7ded1aea932ce4b5f4a7cf50be3
[root@void-live boot]# pwd
/boot
[root@void-live boot]# tree -d
.
├── efi
│   └── EFI
│   └── void_grub
└── grub
├── fonts
└── x86_64-efi
View gist:e5974a7ed66809616c7bb76233222899
[root@void-live /]# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2.17_1
Found initrd image: /boot/initramfs-5.2.17_1.img
Found linux image: /boot/vmlinuz-5.2.15_1
Found initrd image: /boot/initramfs-5.2.15_1.img
Found linux image: /boot/vmlinuz-5.2.14_1
Found initrd image: /boot/initramfs-5.2.14_1.img
Found linux image: /boot/vmlinuz-5.2.13_1
Found initrd image: /boot/initramfs-5.2.13_1.img
View gist:75fb2fbcad6e964b3273f0fd22d3b84b
[root@void-live /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2.17_1
Found initrd image: /boot/initramfs-5.2.17_1.img
Found linux image: /boot/vmlinuz-5.2.15_1
Found initrd image: /boot/initramfs-5.2.15_1.img
Found linux image: /boot/vmlinuz-5.2.14_1
Found initrd image: /boot/initramfs-5.2.14_1.img
Found linux image: /boot/vmlinuz-5.2.13_1
Found initrd image: /boot/initramfs-5.2.13_1.img
View gist:57a0d9bbfa9bf67d28a8f4ae2693ac5a
[hendry@t480s ~]$ sudo -i
[root@t480s ~]# cd /boot/
[root@t480s boot]# find
.
./EFI
./EFI/systemd
./EFI/systemd/systemd-bootx64.efi
./EFI/BOOT
./EFI/BOOT/BOOTX64.EFI
./EFI/EFI
View gist:73004f86ea626b0f2b02fdcc9cafbc5d
[hendry@t480s ~]$ go get github.com/garbeam/staw
# cd .; git clone -- https://github.com/garbeam/staw /home/hendry/go/src/github.com/garbeam/staw
Cloning into '/home/hendry/go/src/github.com/garbeam/staw'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
package github.com/garbeam/staw: exit status 128
View gist:d15226f8cb876b6a37dc3d86b88bae90
[hendry@t480s reset]$ docker build -t uneet/reset-demo .
Sending build context to Docker daemon 868.9kB
Error response from daemon: Dockerfile parse error line 2: ADD requires at least two arguments, but only one was provided. Destination could not be determined.
[hendry@t480s reset]$ vim Dockerfile
[hendry@t480s reset]$ docker build -t uneet/reset-demo .
Sending build context to Docker daemon 868.9kB
Step 1/4 : FROM alpine:edge
edge: Pulling from library/alpine
01fa3b4a8bd4: Pull complete
Digest: sha256:484dfd8f6ffc7237d4d91cb107dad73f4594c33eacfd0fe77c284e36bad9303d
View gist:bd5140d2f7a695a40261206b5d5b8340
[hendry@t480s ~]$ ip route list
default via 192.168.1.1 dev enp0s20f0u4u1 proto dhcp src 192.168.1.31 metric 10
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.25 metric 20
You can’t perform that action at this time.