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 | |
## 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: |
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 | |
# easily "docker exec" into a running Docker container | |
# latest version: https://gist.github.com/ljm42/2b3bfd8ff886015bbce8 | |
# for unRAID, place this script on your flash drive as /boot/custom/docker-shell | |
# then add this to your go script (without the leading pound sign): | |
# cp /boot/custom/docker-shell /usr/local/bin | |
CONTAINERS=`docker ps | awk 'NR==1 {offset=index($0,"NAMES")};NR>1{print substr($0,offset)}' | sort -f | tr "\n" " "` |
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
from __future__ import print_function | |
import argparse | |
import requests # pip install requests | |
import sys | |
from jsonrpclib import jsonrpc # pip install jsonrpclib-pelix | |
""" | |
Simple script to throttle nzb clients for plexpy |
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
<?php | |
/** | |
* Incremental DB Backup Script. | |
* | |
* Requires: innobackupex percona script. | |
* | |
* Meant to run via cron, every 8 hours. It assumes during the fourth | |
* invocation a day has gone by. | |
* | |
* @author Kingcat <[email protected]> |
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
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
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
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ | |
████████████████████████████████████████████████ |
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
""" | |
Share functions from https://gist.github.com/JonnyWong16/f8139216e2748cb367558070c1448636 | |
Once user stream count hits LIMIT they are unshared from libraries expect for banned library. | |
Once user stream count is below LIMIT and banned library video is watched their shares are restored. | |
Once violation count have been reached ban permanently. | |
Caveats: | |
Unsharing doesn't pause the stream. | |
After unsharing user can pause but not skip ahead or skip back. |
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
""" | |
Create a Plex Playlist with what was aired on this today's month-day, sort by oldest first. | |
If Playlist from yesterday exists delete and create today's. | |
If today's Playlist exists exit. | |
""" | |
import operator, time | |
from plexapi.server import PlexServer | |
import requests |
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
""" | |
If user has 2* or more concurrent streams and the IP of the 2nd stream differs from 1st kill 2nd. | |
If 2nd stream IP is the same as 1st stream don't kill. | |
*PlexPy > Settings > Notification> User Concurrent Stream Threshold | |
The number of concurrent streams by a single user for PlexPy to trigger a notification. Minimum 2. | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on user concurrent streams |
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
""" | |
Notify users of recently added episode to show that they have watched at least LIMIT times via email. | |
Also notify users of new movies. | |
Block users with IGNORE_LST. | |
Arguments passed from PlexPy | |
-sn {show_name} -ena {episode_name} -ssn {season_num00} -enu {episode_num00} -srv {server_name} -med {media_type} | |
-pos {poster_url} -tt {title} -sum {summary} -lbn {library_name} -grk {grandparent_rating_key} | |
You can add more arguments if you want more details in the email body |
OlderNewer