Skip to content

Instantly share code, notes, and snippets.

View billimek's full-sized avatar
:octocat:
Verified™️

Jeff Billimek billimek

:octocat:
Verified™️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am billimek on github.
  • I am billimek (https://keybase.io/billimek) on keybase.
  • I have a public key whose fingerprint is 0C77 5B05 6157 0A15 77F2 1404 2EF9 3A2F FF43 E97E

To claim this, I am signing this object:

@billimek
billimek / k3s service log
Created February 9, 2021 18:40
k3s service log for #2425
This file has been truncated, but you can view the full file.
-- Logs begin at Sun 2020-11-15 21:10:02 UTC, end at Tue 2021-02-09 18:36:30 UTC. --
Feb 09 17:00:28 k3s-0 k3s[2906]: I0209 17:00:28.840629 2906 request.go:645] Throttling request took 1.047559041s, request: GET:https://127.0.0.1:6444/apis/notification.toolkit.fluxcd.io/v1beta1?timeout=32s
Feb 09 17:00:56 k3s-0 k3s[2906]: time="2021-02-09T17:00:56.318721786Z" level=info msg="Cluster-Http-Server 2021/02/09 17:00:56 http: TLS handshake error from 10.2.0.34:45035: EOF"
Feb 09 17:00:56 k3s-0 k3s[2906]: time="2021-02-09T17:00:56.333205537Z" level=info msg="Cluster-Http-Server 2021/02/09 17:00:56 http: TLS handshake error from 10.2.0.34:35807: EOF"
Feb 09 17:00:56 k3s-0 k3s[2906]: time="2021-02-09T17:00:56.334394038Z" level=info msg="Cluster-Http-Server 2021/02/09 17:00:56 http: TLS handshake error from 10.2.0.34:12159: EOF"
Feb 09 17:01:00 k3s-0 k3s[2906]: I0209 17:01:00.491998 2906 request.go:645] Throttling request took 1.044775242s, request: GET:https://127.0.0.1:6444/apis/velero.io/v1?timeout=32s
Feb 09
@billimek
billimek / backup.sh
Created November 19, 2020 13:02
quarterly 'offsite' backups scripts
RSYNC_COMMAND="/usr/bin/rsync -ah --delete --stats"
DATE=`date +%Y_%m_%d`
# it may be necessary to mount the drive manually via something like:
# mount -t ext4 /dev/sdf /media/usb0/
# To mount and descrypt the USB device:
echo "----- Decrypting drive ------"
cryptsetup luksOpen /dev/disk/by-uuid/47461dd7-8481-4805-aeee-0377882fe34b encrypted_backup
mount /dev/mapper/encrypted_backup /media/encrypted_backup
@billimek
billimek / rclone-sync.service
Created November 19, 2020 12:55
rclone/borg backups to backblaze b2
[Unit]
Description=Sync files using rclone
[Service]
Type=oneshot
User=root
ExecStart=/root/backup/rclone_borg_sync.sh
@billimek
billimek / README.md
Last active January 1, 2021 03:52
ubiquiti USG bootstrapping

ubiquiti USG bootstrapping

When installing a new ubiquiti USG router device, or when installing a new firmware, the following manual steps will be necessary:

Dyanmic DNS

Cloudflare is not supported out-of-the-box, therefore the following blog post and associated gist reveal what is necessary:

curl https://gist.githubusercontent.com/troyfontaine/7e6f93e32621177fc9a94e823adc52b5/raw/fix_ddns.sh | sudo bash
@billimek
billimek / descheduler.yaml
Created June 5, 2020 16:21
descheduler POST latency debugging
apiVersion: apps/v1
kind: Deployment
metadata:
name: descheduler
namespace: kube-system
labels:
app: descheduler
spec:
replicas: 1
selector:
➜ k -n kube-system logs -f descheduler-1591366800-zgjzl
I0605 14:20:07.688458 1 node.go:45] node lister returned empty list, now fetch directly
I0605 14:20:07.705564 1 node_affinity.go:34] Executing for nodeAffinityType: requiredDuringSchedulingIgnoredDuringExecution
I0605 14:20:07.705598 1 node_affinity.go:39] Processing node: "k3s-0"
I0605 14:20:07.737034 1 node.go:137] Pod system-upgrade-controller-575f9b8876-tm2ch fits on node k3s-0
I0605 14:20:07.737076 1 node_affinity.go:39] Processing node: "k3s-d"
I0605 14:20:07.753553 1 node.go:137] Pod frigate-5c9cd8b98d-cq9sh fits on node k3s-d
I0605 14:20:07.753597 1 node_affinity.go:39] Processing node: "k3s-b"
I0605 14:20:07.780835 1 node_affinity.go:39] Processing node: "k3s-pi4-a"
I0605 14:20:07.798089 1 node.go:137] Pod ser2sock-7b9d5ddb94-7wzlr fits on node k3s-pi4-a
@billimek
billimek / ps output
Created May 21, 2020 21:24
ps -elf on k3os node
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 408 do_wai May16 ? 00:00:01 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea May16 ? 00:00:00 [kthreadd]
1 I root 3 2 0 60 -20 - 0 rescue May16 ? 00:00:00 [rcu_gp]
1 I root 4 2 0 60 -20 - 0 rescue May16 ? 00:00:00 [rcu_par_gp]
1 I root 8 2 0 60 -20 - 0 rescue May16 ? 00:00:00 [mm_percpu_wq]
1 S root 9 2 0 80 0 - 0 smpboo May16 ? 00:03:42 [ksoftirqd/0]
1 I root 10 2 0 80 0 - 0 rcu_gp May16 ? 00:11:31 [rcu_sched]
1 S root 11 2 0 -40 - - 0 smpboo May16 ? 00:00:10 [migration/0]
5 S root 12 2 0 9 - - 0 smpboo May16 ? 00:00:00 [idle_inject/0]
@billimek
billimek / k3os-b.yaml
Created February 8, 2020 20:47
k3os config.yaml for k3os-b
hostname: k3os-b
ssh_authorized_keys:
- github:billimek
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMqgYe/v1r9WHIydNgas3hlXYpdHgPy04ZEYVoZirYpZD/tUuZ5XYzn4LkatRu/lD6YOKISMxRGSV0fEXqFjOQ2Tk+NlgkSOawy/0ED5X/LvI1Sqs39ilFeerKAK0H+ZJfOZzRjlG98QF+0/OFShsHK9JdwmLAH4+wPOzxpwkkXtyVj0mzuFuz84Wpp1uYRpBFp7FRK5pf2wOaZgzu8rdh/zaS3E2vZVYm6gtJuKVfceT0K+IbPdAazKljT9m0xYsXnP0JQCCuxW6GTmVI0dmFSa+VGg0anjUAU0gnm9A9mcOU1NfxigPiEaKjMMFUxtwJQGm8+iYraVsnySzzRQfn jeff@hackintosh.local
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6YYaZvxevdnjTE2Ac5LzgYOXXoVUYX78kPcH2ENMtoiw+438cnlSidYHlC0mMzhmeDAuTS7znpbvgzxknPxTJFOyQnticuzMo2hOTl3xnDMNd1bk38gewm88getY03z2ZymyGfOe/zmJdNZW6SP53c1EHIjiAcb1Cd64FZzpUeiBKQ0dm4D01xFxinnLjU4BmOCKMbN7NSbuAaQtlfaxv9nb/2hjNau5B3kewKFEB3douTCO4VlIIDIq9KXQUUE+aJ/fWTPYB9ymqzahjaRe3e4e1U72J6UB3rxKf3y+R6Y/mj+rYloWGvig2pPJRqCLmNMeeObzwiisPPJCbQ3g5 billimek@github/23922613
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZwZQdLmDKglLw9NYz1SN7+55wTNqCeU2lJN6HQgJ2vyUrpD4T6JcduiH/0aUoUz9vVhfqphwT0hH3O+q/+L1pkCUibiqh4cS9kB46aV5AX5kovcECG
@billimek
billimek / k3os-c.yaml
Last active February 8, 2020 20:49
k3os config.yaml for k3os-c host
ssh_authorized_keys:
- github:billimek
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMqgYe/v1r9WHIydNgas3hlXYpdHgPy04ZEYVoZirYpZD/tUuZ5XYzn4LkatRu/lD6YOKISMxRGSV0fEXqFjOQ2Tk+NlgkSOawy/0ED5X/LvI1Sqs39ilFeerKAK0H+ZJfOZzRjlG98QF+0/OFShsHK9JdwmLAH4+wPOzxpwkkXtyVj0mzuFuz84Wpp1uYRpBFp7FRK5pf2wOaZgzu8rdh/zaS3E2vZVYm6gtJuKVfceT0K+IbPdAazKljT9m0xYsXnP0JQCCuxW6GTmVI0dmFSa+VGg0anjUAU0gnm9A9mcOU1NfxigPiEaKjMMFUxtwJQGm8+iYraVsnySzzRQfn jeff@hackintosh.local
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6YYaZvxevdnjTE2Ac5LzgYOXXoVUYX78kPcH2ENMtoiw+438cnlSidYHlC0mMzhmeDAuTS7znpbvgzxknPxTJFOyQnticuzMo2hOTl3xnDMNd1bk38gewm88getY03z2ZymyGfOe/zmJdNZW6SP53c1EHIjiAcb1Cd64FZzpUeiBKQ0dm4D01xFxinnLjU4BmOCKMbN7NSbuAaQtlfaxv9nb/2hjNau5B3kewKFEB3douTCO4VlIIDIq9KXQUUE+aJ/fWTPYB9ymqzahjaRe3e4e1U72J6UB3rxKf3y+R6Y/mj+rYloWGvig2pPJRqCLmNMeeObzwiisPPJCbQ3g5 billimek@github/23922613
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZwZQdLmDKglLw9NYz1SN7+55wTNqCeU2lJN6HQgJ2vyUrpD4T6JcduiH/0aUoUz9vVhfqphwT0hH3O+q/+L1pkCUibiqh4cS9kB46aV5AX5kovcECGa5zaWlGHBepVqitI0