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
@echo off | |
:: Get the GUIDs for High performance and Power saver plans | |
for /f "tokens=3 delims= " %%A in ('powercfg /list ^| findstr /i "high performance"') do set performance_guid=%%A | |
for /f "tokens=3 delims= " %%A in ('powercfg /list ^| findstr /i "power saver"') do set efficient_guid=%%A | |
:: Get the current active power scheme | |
for /f "tokens=3 delims= " %%G in ('powercfg /getactivescheme') do set current=%%G | |
:: Display current plan | |
echo Current Power Plan GUID: %current% |
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 | |
# RClone Config file | |
RCLONE_CONFIG=/path/to/your/rclone.conf | |
export RCLONE_CONFIG | |
LOCKFILE="/var/lock/`basename $0`" | |
LOG_FILE="/path/to/your/logs/rclone-upload.log" | |
# Maximum log file size in bytes (10MB) | |
MAX_LOG_SIZE=$((10 * 1024 * 1024)) |