This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 .. |