Skip to content

Instantly share code, notes, and snippets.

View fizzxed's full-sized avatar

Emilio Arroyo-Fang fizzxed

View GitHub Profile
@fizzxed
fizzxed / update_qbit_port.sh
Created September 15, 2023 08:15
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
"""
Affine transforms implemented on torch tensors, and
only requiring one interpolation
Included:
- Affine()
- AffineCompose()
- Rotation()
- Translation()
- Shear()