Skip to content

Instantly share code, notes, and snippets.

@scotticles
scotticles / podman.md
Last active December 2, 2020 16:01
My Podman Notes

Podman Notes

I really like how podman is non-root capable and so this project I am working on I decided to ditch docker for it and run it as a user. I am using it on Ubuntu.

Just to make a note here, I am not using a registry, I had one on my raspberryPi but could not get the certificates to work correctly, after following like 3 different how to's I didn't want to invest anymore time. I could use dockerhub but I need this to be private, and they recently added limits. SO This a way to save and load in a image.

for the most part the dockerfile is exactly the same. So carry on with that.

Deploying

@scotticles
scotticles / wireguard-setup-multinodes.md
Last active December 1, 2020 04:39
Wireguard Setup with multiple nodes and cross-communication

wireguard.md

Run this on each node after installing wireguard to create the public key and private key. It will make a wg0.conf in /etc/wireguard

(umask 077 && printf "[Interface]\nPrivateKey = " | sudo tee /etc/wireguard/wg0.conf > /dev/null)

wg genkey | sudo tee -a /etc/wireguard/wg0.conf | wg pubkey | sudo tee /etc/wireguard/publickey

main node

@scotticles
scotticles / dynamicdnsupdater.sh
Last active April 11, 2024 07:34
Dynamically update UFW with a dynamic dns for access to your home network or device with wireguard and ssh.
#!/bin/bash
#SET THE FOLLOWING
HOSTNAME=mydyndns.com
SSH_PORT=22
WIREGUARD_PORT=5246
#IF IT DOES NOT WORK, AT LEAST ON UBUNTU INSTALL, bind-utils to get the host command
@scotticles
scotticles / timer.sh
Last active May 3, 2020 16:58
A simple linux cli timer that alerts with sound and notification. ./timer.sh -m <minutes or -s <seconds> or by default if nothing is passed it will do 30 minutes.
#!/bin/bash
# ./timer.sh -h 1
# ./timer.sh -m 30
# ./timer.sh -s 10 for 10 seconds
# ./timer.sh -e 1h10m30s
# ./timer.sh -m <message>
seconds=1800;
message="Times Up!!!!"
#checks for -s or -m else defaults to 30 minutes