Skip to content

Instantly share code, notes, and snippets.

View trevordavies095's full-sized avatar
🎧

Trevor Davies trevordavies095

🎧
View GitHub Profile
@trevordavies095
trevordavies095 / remove_orphaned_qbittorrent_files.py
Created March 3, 2024 00:17
remove_orphaned_qbittorrent_files.py
import requests
import os
import shutil
# Define your qBittorrent API endpoint
qbittorrent_api_url = ''
# Make a request to the qBittorrent API
response = requests.get(qbittorrent_api_url)
@trevordavies095
trevordavies095 / update_qbit_port.sh
Last active February 3, 2024 06:07 — forked from fizzxed/update_qbit_port.sh
Determine protonvpn port via gluetun and update qbittorrent
#!/usr/bin/env bash
# Determine protonvpn port via gluetun and update qbittorrent
#
# Add the following to sudo crontab -e to run every 5 minutes
# */5 * * * * /bin/sh /path/to/update_qbit_port.sh
# For synology users, run the script as root via the task scheduler every 5 minutes.
QBITTORRENT_USER= # qbittorrent username
QBITTORRENT_PASS= # qbittorrent password
QBITTORRENT_PORT=8080