Skip to content

Instantly share code, notes, and snippets.

View frizz925's full-sized avatar

Izra frizz925

  • Tokyo, Japan
View GitHub Profile
@frizz925
frizz925 / cloud-config.yaml
Created October 5, 2022 12:52
Cloud config for setting up DNSCrypt Proxy and Pi-Hole
#cloud-config
users:
- default
- name: dnscrypt-proxy
gecos: DNSCrypt Proxy User
system: true
package_upgrade: true
packages:
- curl
- supervisor
@frizz925
frizz925 / btrfs-snapshot.sh
Created July 7, 2023 12:56
Bash script to manage Btrfs snapshots
#!/bin/bash
set -eo pipefail
SCRIPT_PATH=$0
MOUNT_DEV=/dev/mapper/fedora-root
MOUNT_PATH=/mnt
SNAPSHOTS_SUBVOL=.snapshots
SNAPSHOTS_PATH="$MOUNT_PATH/$SNAPSHOTS_SUBVOL"