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
| ## IN runitservicedir/ufw/run | |
| #!/bin/sh | |
| set -e | |
| /usr/lib/ufw/ufw-init start quiet | |
| exec chpst -b ufw pause | |
| ###in runitservicedir/ufw/finish | |
| #!/bin/sh | |
| set -e | |
| exec /usr/lib/ufw/ufw-init stop |
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/sh | |
| [ -r conf ] && . ./conf | |
| exec 2>&1 | |
| exec /usr/bin/tailscaled \ | |
| --state=/var/lib/tailscale/tailscaled.state \ | |
| --socket=/run/tailscale/tailscaled.sock \ | |
| --port "${PORT:-41641}" \ | |
| "$@" |
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 | |
| # Automate this with `crontab -e` and throw in `*/15 * * * * /path/to/ddns.sh` | |
| # Customise crontab timings with https://crontab.guru/#*/15_*_*_*_* | |
| ZONE_ID="" # Zone id (get from cloudflare dash) | |
| API_TOKEN="" # Put cloudflare token here | |
| IP=$(curl -s https://ipv4.icanhazip.com) |
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 | |
| # This specific yt-dl setup is taken from Seal, https://github.com/JunkFood02/Seal | |
| set -euo pipefail | |
| usage() { | |
| echo "Usage: $(basename "$0") <url> [output-dir]" | |
| echo "" | |
| echo " url URL to download (required)" |
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
| # go on aegis, create a plaintext export, then name the export aegis.txt and run this | |
| # designed for keepassxc, probably works with other stuff too though | |
| # yes i know the code is messy | |
| import csv | |
| import urllib.parse | |
| with open("aegis.txt") as f: | |
| lines = [l.strip() for l in f if l.startswith("otpauth://")] |
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 playwright.sync_api import sync_playwright | |
| import requests | |
| #https://www.lockheedmartin.com/en-us/news/features/2020/elevate-your-screen-with-lockheed-martin-wallpapers.html | |
| with sync_playwright() as p: | |
| browser = p.chromium.launch(headless=False) | |
| context = browser.new_context(viewport={"width": 1920, "height": 1080}) | |
| page = context.new_page() | |
| page.goto("https://www.lockheedmartin.com/en-us/news/features/2020/elevate-your-screen-with-lockheed-martin-wallpapers.html", wait_until="domcontentloaded") |
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
| oneRepMax = int(input("Enter one rep max: ")) | |
| increment = int(input("Enter increment: ")) | |
| schedule = [] | |
| for week in range(3): | |
| plan = [ #[day, sets, reps, weight] | |
| ["Monday ", " 6", 6], | |
| ["Wednesday", " 7", 5], | |
| ["Friday ", " 8", 4], |