Skip to content

Instantly share code, notes, and snippets.

View addohm's full-sized avatar
🤬
I may be slow to respond.

Adam addohm

🤬
I may be slow to respond.
View GitHub Profile
@addohm
addohm / mihomo_speedtest.py
Last active October 15, 2026 03:31
Test mihomo config proxy up\down
#!/usr/bin/env python3
"""
mihomo_speedtest.py - test every server in your running mihomo, exactly as mihomo uses it.
Just run it: python mihomo_speedtest.py
What it does
1. Finds your running mihomo (any client: Clash Verge Rev, Mihomo Party, Nyanpasu,
FlClash, ClashX Meta, plain mihomo...) through its external-controller API.
2. Temporarily turns TUN off and switches mihomo to global mode.
@addohm
addohm / rep-and-set-methods.md
Created August 31, 2026 05:28
Rep and set methods

Rep & Set Methods: A Bodybuilding Reference

A running catalog of set structures, intensity techniques, rep manipulations, and splits.

● in the right-hand column = used almost exclusively for hypertrophy. Unmarked methods are borrowed from or shared with strength, power, conditioning, or rehab work.


Basic Structures

@addohm
addohm / mtp_sanitize.py
Created August 8, 2026 07:06
MTP\FAT filename sanitization
#!/usr/bin/env python3
"""Make filenames safe for MTP/FAT devices such as the Garmin Forerunner.
See --help for the full description; this docstring is deliberately short so
that `python -m pydoc mtp_sanitize` stays readable.
"""
from __future__ import annotations
import argparse
@addohm
addohm / vid.py
Last active May 23, 2026 21:23
Video Modification Simplified
#!/usr/bin/env python3
"""vid — a friendlier CLI wrapper around ffmpeg for common video tasks."""
import argparse
import json
import os
import re
import shlex
import shutil
import subprocess
@addohm
addohm / yt-download.sh
Last active May 23, 2026 13:21
Download youtube content
#!/usr/bin/env bash
# ipad-util — manage files on an iOS app's Documents folder over USB.
# Works with any iOS app that opts into file sharing (UIFileSharingEnabled).
#
# Subcommands:
# put <path>... Transfer files/dirs into Documents (dirs walked manually).
# get <remote> [local] Pull a file/dir from device.
# ls [remote] List remote contents (default: Documents).
# rm [-f] <remote>... Delete files/dirs (prompts unless -f).
# mv <old> <new> Rename or move on device.
@addohm
addohm / ipad-util.sh
Last active August 8, 2026 07:05
linux ipad utility
#!/usr/bin/env bash
# ipad-util — manage files on an iOS app's Documents folder over USB.
# Works with any iOS app that opts into file sharing (UIFileSharingEnabled).
#
# Subcommands:
# put <path>... Transfer files/dirs into Documents (dirs walked manually).
# get <remote> [local] Pull a file/dir from device.
# ls [remote] List remote contents (default: Documents).
# rm [-f] <remote>... Delete files/dirs (prompts unless -f).
# mv <old> <new> Rename or move on device.
@addohm
addohm / get_apiconfig.py
Created April 8, 2026 13:10
Get clash config from api url
import requests
def debug_wannaflix_request():
# Adding a common Clash User-Agent is the "magic" fix for many APIs
headers = {'User-Agent': 'Clash-Verge/1.0 (clash-verge-rev; mihomo)'}
url = input("Paste your Wannaflix URL: ").strip()
try:
@addohm
addohm / Git init cli.md
Last active July 21, 2025 08:41
Git Starts from CLI

Pulling an exisitng repository into a new folder

git init

git remote add origin https://{YOUR_GITHUB_TOKEN}@github.com/{REPO_OWNER_USER_NAME}/{REPO_NAME}.git

git pull origin main

@addohm
addohm / instructions.md
Last active July 25, 2025 22:16
6.15.2-200.nobara.fc42.x86_64 patch for vmware workstation vm drivers

cd /usr/lib/vmware/modules/source/

create backup of modules and unpack

sudo mv vmmon.tar vmmon.tar.bak

sudo tar xf vmmon.tar.bak

sudo mv vmnet.tar vmnet.tar.bak

sudo tar xf vmnet.tar.bak

@addohm
addohm / arch_linux_installation_guide.md
Created June 12, 2025 15:49 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system