This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker stop portainer | |
docker rm portainer | |
docker pull portainer/portainer-ce:latest | |
docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest |