Skip to content

Instantly share code, notes, and snippets.

View TheManchineel's full-sized avatar

A.M. TheManchineel

View GitHub Profile
@TheManchineel
TheManchineel / update.py
Created October 1, 2023 17:23
Automatically update list of Cloudflare proxy IPs on NGINX
from os import chdir, path, system
from ipaddress import ip_network
from requests import get
chdir(path.dirname(path.abspath(__file__)))
with open("cloudflare-ips.conf", mode="r") as f:
original_rules = f.read()
ipv4_ips = get("https://www.cloudflare.com/ips-v4/").text.splitlines()
#!/bin/bash
set -euf -o pipefail
# Easily back up your ZFS datasets pools atomically, incrementally, with compression and encryption to remote storage with Kopia and Docker.
# Configuration
# -------------------------------------------------------------
# ZFS:
ZFS_POOL_NAME=mypool
@TheManchineel
TheManchineel / install_v4l2loopback_aarch64_raspios.sh
Last active April 22, 2023 13:31
Install v4l2loopback on Raspberry Pi OS (64-bit)
#!/bin/bash
sudo apt update
sudo apt install -y raspberrypi-kernel-headers
curl -LO https://github.com/umlaeute/v4l2loopback/archive/refs/tags/v0.12.7.tar.gz
tar xzf v0.12.7.tar.gz
cd v4l2loopback-0.12.7
make
sudo make install
cd ..