Skip to content

Instantly share code, notes, and snippets.

@xmoforf
xmoforf / check-updates.py
Created November 10, 2024 01:18
check-updates.py
from contextlib import contextmanager
from datetime import datetime, timedelta
import os
import subprocess
import sys
from yaspin import yaspin
LAST_UPDATED_FILE = ".last_updated"
BRANCH = sys.argv[1]
@xmoforf
xmoforf / qb-http2.md
Last active September 28, 2025 00:51
HTTP/2 Thing

Upgrade Qbittorrent HTTP Announces to HTTP/2

Motivation

You probably don't want to do what is described in this document. Seriously consider just leaving things alone.

Because Qbittorrent, and most all torrent clients, still use HTTP/1.1, they typically do not reuse connections for multiple announces of different torrents to the same tracker announce URL. As the number of torrents goes up, there ends up being a lot of traffic back and forth just re-establishing a connection for each announce. This is highly inefficient, and while it is not really a problem for most users, or even most tracker operators, it is something that can start to be noticed at at the tracker level at a very large scale.

Using a more modern protocol, like HTTP/2, addresses this inefficiency by reusing an established connection. Unfortunately, Transmission is really the only torrent client that implements HTTP/2 right now. For Qbittorrent, the issue resides in an underlying library, libtorrent. The issue was raised in 2020,

@xmoforf
xmoforf / wg-systemd.md
Created October 4, 2025 23:57
wg-systemd

Systemd + Wireguard

/etc/systemd/network/wg0.netdev

[NetDev]
Name=wg0
Kind=wireguard
Description=WireGuard tunnel wg0
@xmoforf
xmoforf / Disable Ethernet.bat
Last active October 21, 2025 03:19
Various DeDRM Support Scripts
@echo off
netsh interface set interface "Ethernet" admin=disable
@xmoforf
xmoforf / WedgeMarker.user.js
Last active November 4, 2025 03:13
Book Stuff?
// ==UserScript==
// @name MAM - WedgeWaster (Bookmark Edition)
// @author WirlyWirly
// @namespace https://github.com/xmoforf
// @version 2.9.2
// @match https://www.myanonamouse.net/
// @match https://www.myanonamouse.net/index.php
// @match https://www.myanonamouse.net/preferences/index.php*
// @match https://www.myanonamouse.net/t/*
@xmoforf
xmoforf / WedgeMarker-alpha.user.js
Last active November 4, 2025 02:32
WedgeMarker-alpha.user.js
// ==UserScript==
// @name MAM - WedgeWaster (Alpha Test) (Bookmark Edition)
// @author WirlyWirly
// @namespace https://github.com/xmoforf
// @version 2.8
// @match https://www.myanonamouse.net/
// @match https://www.myanonamouse.net/index.php
// @match https://www.myanonamouse.net/preferences/index.php*
// @match https://www.myanonamouse.net/t/*