Skip to content

Instantly share code, notes, and snippets.

@VoidAny
VoidAny / dash_to_quote_dialouge.py
Last active August 10, 2025 20:12
Does your favorite web novel use dashes to start dialouge instead of bounding it with qoutes? This program will fix it! Created to process this book/series on AO3: https://archiveofourown.org/works/51538063
from bs4 import BeautifulSoup
from pathlib import Path
DASHES = ("—", "–", "-")
# Generate dashes_spaced
DASHES_SPACED = []
for dash in DASHES:
# Handle all of the different space types
DASHES_SPACED.append(f" {dash} ")
DASHES_SPACED.append(f" {dash}\u00A0")
@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)