Skip to content

Instantly share code, notes, and snippets.

View newsworthy39's full-sized avatar

newsworthy39

View GitHub Profile
@newsworthy39
newsworthy39 / install.sh
Last active January 21, 2025 15:57 — forked from Faheetah/install.sh
Install containerd and nerdctl on Ubuntu
# Note: can also just install nerdctl-full
sudo apt-get update
sudo apt-get install containerd iptables
wget https://github.com/containerd/nerdctl/releases/download/v2.0.1/nerdctl-2.0.1-linux-amd64.tar.gz
tar -zxf nerdctl-*-linux-amd64.tar.gz nerdctl
sudo mv nerdctl /usr/bin/nerdctl
rm -rf nerdctl*
@newsworthy39
newsworthy39 / userconf.txt
Created May 29, 2024 14:10 — forked from M0LTE/userconf.txt
Raspberry Pi userconf
Create a file named user userconf (or userconf.txt) containing the following:
pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0
Place userconf (or userconf.txt) plus an empty file named ssh (or ssh.txt) in the BOOT (FAT32) partition of the SD card.
Insert the SD card in the Raspberry Pi and it should boot with access to user 'pi' (password : raspberry) via SSH.
@newsworthy39
newsworthy39 / wg-quick.service
Last active March 24, 2024 19:40
wq-quick systemd unit files
# This file is largely based on the tinc@ service-idea.
# Both files belong in /lib/systemd/system/
# Enable it, systemctl enable wg-quick, then enable configurations (ie, /etc/wireguard/wg0.conf)
# systemctl enable wg-quick@wg0
[Unit]
Description=Wireguard VPN
After=network-online.target
Wants=network-online.target
[Interface]
PrivateKey = <Output of privatekey file that contains your private key>
Address = 203.0.123.12/24, fd86:ea04:1115::5/64
[Peer]
PublicKey = <Server Public key>
Endpoint = <Server Public IP>:51820
AllowedIPs = 203.0.123.12/24, fd86:ea04:1115::5/64