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 | |
# remux_and_stage.sh | |
# Called by rTorrent when a download finishes | |
# $1 = path to downloaded file or folder | |
set -e | |
DOWNLOADS="/home/plex/rtorrent/downloads" | |
PROCESSED="/home/plex/processed" |
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 | |
set -euo pipefail | |
echo "=== Proxmox VE 8.4 → 9.0 Upgrade Script ===" | |
echo "!! WARNING: BACKUP ALL VMs/CTs AND CONFIGS BEFORE CONTINUING !!" | |
read -p "Press Enter to continue or Ctrl+C to abort..." | |
# 1. Verify current version | |
if ! pveversion | grep -q "pve-manager/8"; then | |
echo "Error: This script is only for Proxmox VE 8.x systems." |
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 | |
# Config | |
INTERFACE="wg0" | |
SERVICE="wg-quick@${INTERFACE}.service" | |
CHECK_INTERVAL=30 | |
MAX_RETRIES=5 | |
RETRY_DELAY=10 | |
check_vpn() { |
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
[Unit] | |
Description=RClone Service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type=notify | |
Environment=RCLONE_CONFIG=/YOUR_PATH/rclone/rclone.conf | |
RestartSec=5 | |
ExecStart=/usr/bin/rclone mount dcrypt: /YOUR/MOUNT/POINT/FOLDER \ |
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/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
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
[Unit] | |
Description=RClone Service | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
Type=notify | |
Environment=RCLONE_CONFIG=/home/plex/.config/rclone/rclone.conf | |
ExecStart=/usr/bin/rclone mount Googlecrypt: /home/plex/mnt \ | |
--allow-other \ |
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 | |
EXCLUDE=/home/plex/scripts/exclude-file.txt | |
LOGFILE=/home/plex/logs/rclone-upload.log | |
FROM=/home/plex/move | |
TO=Googlecrypt:/ | |
if pidof -o %PPID -x "rclone-upload.sh"; then | |
exit 1 | |
fi | |
# CHECK FOR FILES IN FROM FOLDER THAT ARE OLDER THAN 15 MINUTES |
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
[Unit] | |
Description=OpenVPN Robust And Highly Flexible Tunneling Application On <server> | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=forking | |
PIDFile=/run/openvpn-server.pid | |
ExecStart=/usr/sbin/openvpn --daemon --writepid /run/openvpn-server.pid --cd /etc/openvpn/ --auth-nocache --config TorGuard.Sweden.conf --log-append /var/log/openvpn.log | |
Restart=on-failure |
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 | |
# Share Wifi with Eth device | |
# Original source: | |
# https://raw.githubusercontent.com/arpitjindal97/raspbian-recipes/master/wifi-to-eth-route.sh | |
# | |
# This script is created to work with Raspbian Stretch | |
# but it can be used with most of the distributions | |
# by making few changes. | |
# |
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 | |
# Share Wifi with Eth device | |
# Original source: | |
# https://raw.githubusercontent.com/arpitjindal97/raspbian-recipes/master/wifi-to-eth-route.sh | |
# This script is created to work with Raspbian Stretch | |
# but it can be used with most of the distributions | |
# by making few changes. | |
# | |
# Make sure you have already installed `dnsmasq` |
NewerOlder