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
| # Plex on Windows Anti-Sleep | |
| # | |
| # References | |
| # Gist: https://gist.github.com/KakersUK/d090e1836ffb881d29c9f529b380f795 | |
| # Install PowerShell 7: https://learn.microsoft.com/en-gb/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3#winget | |
| # X-Plex-Token: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/ | |
| # Host variables | |
| $PlexHost = '127.0.0.1' | |
| $PlexPort = 32400 |
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 | |
| if [ "$1" = "disable" ]; then | |
| for PID in $(pgrep $2 | grep -v oomkiller); do | |
| oomValue=$(cat /proc/$PID/oom_adj) | |
| if [ $oomValue == 0 ]; then |
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=Mailcatcher Service | |
| Before=httpd.service | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=mailcatcher | |
| ExecStart=/usr/local/bin/mailcatcher -f --no-quit --smtp-ip=127.0.0.1 --smtp-port=1025 --http-ip=127.0.0.1 --http-port=1080 | |
| Restart=on-abort |
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 | |
| # | |
| # chkconfig: - 55 45 | |
| # description: The memcached-multi daemon is a network memory cache service. | |
| # processname: memcached-multi | |
| # config: /etc/sysconfig/memcached | |
| # pidfile: /var/run/memcached/memcached.*.pid | |
| # Standard LSB functions |
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 | |
| # chkconfig: 345 70 30 | |
| # description: MailCatcher is a simple SMTP server to catch and display mail | |
| # processname: mailcatcher | |
| # Source function library. | |
| . /etc/init.d/functions | |
| RETVAL=0 | |
| prog="/usr/local/rvm/wrappers/default/mailcatcher" |