Skip to content

Instantly share code, notes, and snippets.

View njnygaard's full-sized avatar
🌵

Nikhil Nygaard njnygaard

🌵
View GitHub Profile
@njnygaard
njnygaard / pihole-teleport-automation.md
Last active March 17, 2022 00:26
Backup and Restore PiHole via Teleport but Curl

HOST should resolve to your PiHole (here, it resolves via local DNS).

Pi-hole v5.9
FTL v5.14
Web Interface v5.11

Get (POST) a Backup

export HOST="thorn";
@njnygaard
njnygaard / arch-linux-install
Last active March 11, 2021 19:09 — forked from h3nchman/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Create partitions
@njnygaard
njnygaard / keybase.md
Last active September 17, 2017 17:22
keybase.md

Keybase proof

I hereby claim:

  • I am njnygaard on github.
  • I am njnygaard (https://keybase.io/njnygaard) on keybase.
  • I have a public key whose fingerprint is 53E3 5482 9D9B 37F1 1150 F36D 31CF 74C5 8464 05B7

To claim this, I am signing this object: