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
from __future__ import annotations | |
ignoreextensions = [] # cSpell:disable-line | |
print('-'*60) | |
import os | |
import subprocess | |
from dataclasses import dataclass | |
from packaging.version import parse as version, Version | |
from typing import Union |
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
#### | |
# ZSH function to auto-switch to correct Node version | |
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
# | |
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
# | |
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
# | |
# - Works correctly if your .nvmrc file contains something relaxed/generic, | |
# like "4" or "v12.0" or "stable". |