Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# chmod +x this script (terminal command e.g. `chmod +x xseed_qbit_cat_filter.sh`)
# put the following execution command in your qbit with its absolute path from qbit's
# perspective (container path if docker).
#
# /path/to/xseed_qbit_cat_filter.sh "%F" "%L" "%N" "%T" "%I"
TORRENT_PATH=$1
TORRENT_CAT=$2
#!/usr/bin/python3
# This script was written by zakkarry ( https://github.com/zakkarry )
# Simply follow the basic configuration options below to remove all 'cross-seed'
# tags from all torrents from qBittorrent client matching the options below.
#
# If you do not know how to use environmental variables, or do not need to, simply
# configure the second part of the OBIT_* variables, where the actual URL and strings are.
#
# If you need to, you can use this script to remove any tag as well, simply modify CROSS_SEED_TAG
# from 'cross-seed' to whichever tag you wish to remove.
import logging
import os
import shutil
import sys
from pathlib import Path
from typing import Any, NewType, Union, Dict, List, Set
import bencodepy # type: ignore
### ---------- SETUP ---------- ###
@VoidAny
VoidAny / qbittorrent2transmission.py
Last active October 21, 2024 12:56
This script uses the transmission-rpc interface to add all of the torrents from a qBittorrent BT_backup to your transmission-daemon (no rehashing required too!). transfer torrents from qBittorrent to transmission
#!/usr/bin/env python3
"""
This script will add all the torrents in the BT_backup folder to transmission
It will also add the labels and download directory from the corresponding quickresume file
Once a torrent is added, it will be renamed to .added so it won't be added again (if the script is run again)
Make sure to edit the Client() settings to match your transmission settings and the path to the BT_backup folder
Run:
@tdrnlds
tdrnlds / mover.php
Created March 25, 2023 17:16
Move directories in which all the MKV and MP4 video files have only one hard link, designed for Unraid
#!/usr/bin/php
<?php
$source = '/mnt/cache/share';
$destination = '/mnt/disk1/share';
$threshold = 80;
if( ! @file_exists( $source ) ) {
echo "Bad source directory\n";
exit( 1 );
// ==UserScript==
// @name PTP - Add & Filter All Releases
// @namespace http://tampermonkey.net/
// @version 3.1
// @description add releases from other trackers
// @author passthepopcorn_cc
// @match https://passthepopcorn.me/torrents.php?id=*
// @grant GM_xmlhttpRequest
// ==/UserScript==
@haridhayal11
haridhayal11 / exynos2100_gsi.md
Last active December 16, 2025 03:16
Guide for Installing GSI on Exynos2100 devices

Instructions for installing AOSP GSI on exynos2100 devices

Your warranty is now void. I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

@Roardom
Roardom / qbit-fastresume-path-changer.py
Created December 7, 2021 15:55
Replace paths easily in qBittorrent .fastresume (useful when switching from windows to linux)
import os
import re
# Insert the path where you keep your fast resume files here.
# Make a backup first!!!
torrentsDir = r'/torrents/'
# Insert paths to be replaced here. Dictionary key is current path. Dictionary value is new path
# If left empty, the script will only detect paths