Skip to content

Instantly share code, notes, and snippets.

@tdmalone
tdmalone / static-site-watch.sh
Last active June 17, 2021 08:03 — forked from senko/onchange.sh
Watch specified directory recursively for file changes, and sync it to S3 when anything is created, modified, moved or deleted. Designed for use with a static site generator.
#!/usr/bin/env bash
#
# Watch specified directory recursively for file changes, and sync it to S3 when anything is
# created, modified, moved or deleted. Designed for use with a static site generator.
#
# Originally based on a script by Senko Rasic <[email protected]>
# Modified by Tim Malone <[email protected]>
# Ideas included from Lambros Petrou <[email protected]>
# Released to public domain.
# See https://gist.github.com/senko/1154509
@triangletodd
triangletodd / README.md
Last active April 3, 2025 16:29
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a