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
@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 / 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 / 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 / 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

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: