Skip to content

Instantly share code, notes, and snippets.

@anthony1x6000
anthony1x6000 / qbit-fastresume-path-changer.py
Last active January 23, 2025 04:46 — forked from Roardom/qbit-fastresume-path-changer.py
Hopefully replace paths + subdir easily in qBittorrent .fastresume (useful when switching from windows to linux)
import os
import re, shutil
# Insert the path where you keep your fast resume files here.
# Make a backup first!!!
torrentsDir = r'1/'
# 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
@anthony1x6000
anthony1x6000 / bravetoImagesStartpage.user.js
Last active April 27, 2023 20:20
Use with Brave search. Instead of using Bing or Google as an image service for Brave Search, this userscript uses StartPage as an image service. Part of its own repo now: https://github.com/anthony1x6000/BraveSearch-with-Startpage-Images
// ==UserScript==
// @name Brave to Startpage Images
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Use StartPage as an image service for Brave Search.
// @author anthony1x6000
// @match https://search.brave.com/search?q=*
// @icon https://brave.com/static-assets/images/brave-favicon.png
// @grant none
// ==/UserScript==
@anthony1x6000
anthony1x6000 / unmark.py
Last active April 27, 2023 03:19
Removes anime sub file naming watermarks so kodi isnt broken
import keyboard
import re
from time import sleep
import pyperclip
print("""
Sometimes subtitle teams put their watermark before the title of a show you watch. Kodi is sometimes confused by this.
This script it meant to eliminate those problems by removing the bit of square bracketed text before a show title.
For example,
NichijouE23.srt
@anthony1x6000
anthony1x6000 / textcomplete.user.js
Last active January 30, 2023 23:56
Userscript that calls openai with a question, gets an answer, and displays it all within two inputs on the bottom of a website that appear if hovered upon. This is very clearly for cheating on google forms.
// ==UserScript==
// @name Text Completion
// @namespace http://tampermonkey.net/
// @version 0.2
// @description textbox and respponse
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
@anthony1x6000
anthony1x6000 / slate.host.sxcu
Last active November 9, 2022 23:43
Slate.host ShareX config
{
"Name": "slate",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "https://uploads.slate.host/api/v3/public/[TAG/FOLDER/COLLECTION ID HERE]",
"Headers": {
"Authorization": "[API KEY HERE]"
},
"Body": "MultipartFormData",
"FileFormName": "file",
@anthony1x6000
anthony1x6000 / 1219button.user.js
Last active July 5, 2023 01:26
1.12.2 curseforge button
// ==UserScript==
// @name 1.12.2
// @namespace http://tampermonkey.net/
// @version 0.21
// @description direct to 1.12.2 page if exists
// @author You
// @match https://legacy.curseforge.com/minecraft/mc-mods/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=curseforge.com
// @grant none
// @run-at document-end
@anthony1x6000
anthony1x6000 / main.py
Last active December 11, 2021 21:09
Python for loop, save selenium webdriver get text to a specific file.
websites = ["https://github.com/anthony1x6000/website", "https://github.com/raryelcostasouza/pyTranscriber", "https://github.com/ONLYOFFICE/server"]
textfiles = ["text1.txt", "text2.txt", "text3.txt"]
xpath = '//*[@id="repository-container-header"]/div[1]/div/h1/span[1]/a' # just the single xpath
with suppress(Exception):
for file in textfiles:
os.remove(file) #deletes old text files
for file in textfiles:
open(file, 'a').close()# creates the same file
v = 0
for site in websites:
@anthony1x6000
anthony1x6000 / XL Food Mod Seasonal Seeds.txt
Last active July 13, 2021 01:59
Serene Seasons 1.12.2 xl food mod compatibility
XL-Food-Mod Serene seasons compatability seeds list
xlfoodmod:pepper_seeds Summer, Autumn
xlfoodmod:corn_seeds Summer
xlfoodmod:cucumber_seeds Summer
xlfoodmod:lettuce_seeds Autumn
xlfoodmod:tomato_seeds Summer
xlfoodmod:strawberry_seeds Spring, Summer
xlfoodmod:onion Spring, Autumn, Winter
xlfoodmod:rice_seeds Spring, Summer, Autumn