Skip to content

Instantly share code, notes, and snippets.

@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:
@VoidAny
VoidAny / miner.py
Last active December 31, 2021 19:27
This script just types "/mine" into a discord channel. I use it in a VM so that I can use my keyboard while it is running. Please run "pip install pynput" to install the depenencies.
import pynput
from pynput.keyboard import Key
from time import sleep
keyboard = pynput.keyboard.Controller()
def enter():
keyboard.press(Key.enter)
sleep(0.1)
keyboard.release(Key.enter)