Skip to content

Instantly share code, notes, and snippets.

View heapframe's full-sized avatar
🥶
reverse engineering >

axjp heapframe

🥶
reverse engineering >
  • 127.0.0.1
  • 17:31 (UTC +01:00)
View GitHub Profile
@heapframe
heapframe / ufw-runit.sh
Created March 7, 2026 12:12
ufw startup scripts for runit
## 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
@heapframe
heapframe / tailscale-runit.sh
Created March 7, 2026 12:08
runit script for tailscale, rename this to "run", and symlink it into ur active runit dir from the runit dir with all the services
#!/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}" \
"$@"
@heapframe
heapframe / ddns.sh
Last active March 7, 2026 11:40
Update cloudflare domains to keep your domain names pointing to the right IP, designed for people who self host with dynamic ip addresses
#!/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)
#!/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)"
@heapframe
heapframe / aegisTokeepassxc.py
Last active May 4, 2026 07:56
aegis export -> keepassxc
# 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://")]
@heapframe
heapframe / main.py
Created July 12, 2025 17:05
download all lockheed martin wallpapers
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")
@heapframe
heapframe / main.py
Created May 29, 2025 07:47
Smolov junior calculator in python, supports exporting as a ..csv
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],