This file contains hidden or 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/python3 | |
| # Needs to have | |
| # pip install qbittorrent-api | |
| # Docs | |
| # https://qbittorrent-api.readthedocs.io/en/latest/api.html | |
| from qbittorrentapi import Client |
This file contains hidden or 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/bash | |
| read -p "Torrent source: " source | |
| read -p "Comment: " comment | |
| name=$(basename "${source}") | |
| mktorrent \ | |
| -p `# Private torrent - not distributed on DHT` \ | |
| -a udp://opentracker.i2p.rocks:6969/announce `# Tier 0` \ | |
| -a udp://tracker.openbittorrent.com:6969/announce `# Tier 1` \ |
This file contains hidden or 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
| #!/bin/bash | |
| directory="$*" | |
| if [ -z "$directory" ];then | |
| echo "You must pass a directory path" | |
| exit 1 | |
| fi | |
| read -r -p "Correct ${directory} file and folder permissions? [y/N] " chse | |
| if [[ "$chse" =~ ^([yY][eE][sS]|[yY])+$ ]]; then |