Skip to content

Instantly share code, notes, and snippets.

@evenwebb
evenwebb / plexcheck.sh
Created April 12, 2018 17:02
Check Plex Server Status
#!/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
@evenwebb
evenwebb / PhotoImport.sh
Last active November 10, 2020 03:49 — forked from ljm42/PhotoImport.sh
unRAID - automatically move photos to array, different scripts for different cameras.
#!/bin/bash
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
## 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
## If jhead was installed, it will automatically rotate images according to the exif data
## 3. Wait for the imperial theme to play, then remove the memory card
## Preparation: