Skip to content

Instantly share code, notes, and snippets.

@leowinterde
leowinterde / central_ddns.yaml
Created July 3, 2024 18:32
Home Assistant Auto Update DNS to porkbun.com
---
#############################################################################
# DNS Updater
#############################################################################
sensor:
- platform: rest
resource: "https://api.ipify.org/"
name: "external_ip"
scan_interval: 600
@leowinterde
leowinterde / Proxmox - Encrypted ZFS dataset for LXC Container
Last active February 1, 2025 23:22
Proxmox - Create a encrypted ZFS dataset for your LXC Container
# Enalbe encryption for pool
zpool set feature@encryption=enabled poolName
# Create a encryption key
dd if=/dev/random bs=64 count=1 of=/.zfs-data.key
# Set the approprieate permission
chmod 400 /.zfs-data.key
# Make the key immutable