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 | |
# Store the directory path in a variable for easy modification | |
dir_path="/mnt/user/Downloads/" | |
# Count the number of files and directories in the directory | |
file_count=$(find "$dir_path" -mindepth 1 | wc -l) | |
# Get the total size of all files in the directory | |
total_size=$(du -sh "$dir_path" | awk '{print $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 | |
# Pushover configuration | |
PUSHOVER_USER_KEY="00000000000000000000000" | |
PUSHOVER_APP_TOKEN="000000000000000" | |
# Docker container name for Plex | |
PLEX_CONTAINER_NAME="plex" | |
# Plex web UI URL |
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 | |
RADARR_URL="http://192.168.1.1:7878" | |
API_KEY="234234234234234234234234234234234234234" | |
CURRENT_YEAR_PROFILE_ID=9 | |
DEFAULT_PROFILE_ID=2 | |
DRY_RUN=0 # 1 = dry run, 0 = live | |
THIS_YEAR=$(date +"%Y") |
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 | |
#name=Plex Media Server check and restart | |
#description=This script will restart PLEX if it does not respond after two attempts. | |
#arrayStarted=true | |
dockerid=$(docker ps -aqf "name=Plex") | |
if [ "$dockerid" == "" ]; then | |
echo "ERR $(date -Is) - Could not get a docker id for docker name \"Plex\"." | |
exit 1; | |
fi |
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 | |
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin | |
## Modern Photo Import Script for unRAID 7.x | |
## Updated for unRAID OS 7.0+ with improved error handling and modern features | |
## | |
## Usage (after configuration): | |
## 1. Insert camera's memory card into a USB port on your unRAID system | |
## 2. The system will automatically move (or copy) any images/videos from the memory card to the array | |
## Photos will be auto-rotated based on EXIF data if tools are available |