This file contains 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
/** | |
* A generic confirmation for risky actions. | |
* Usage: Add attributes: | |
* * ng-confirm-message="Are you sure?" | |
* * ng-confirm-click="takeAction()" function | |
* * ng-confirm-condition="mustBeEvaluatedToTrueForTheConfirmBoxBeShown" expression | |
*/ | |
angular.module('app').directive('ngConfirmClick', [function() { | |
return { | |
restrict: 'A', |
This file contains 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
''' | |
kill_transcode function from https://gist.github.com/Hellowlol/ee47b6534410b1880e19 | |
PlexPy > Settings > Notification Agents > Scripts > Bell icon: | |
[X] Notify on pause | |
PlexPy > Settings > Notification Agents > Scripts > Gear icon: | |
Playback Pause: create_wait_kill.py | |
PlexPy > Settings > Notifications > Script > Script Arguments: | |
{transcode_key} |
This file contains 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
# EdgeOS v1.9 Google Fiber Config Script | |
# by Steve Jenkins (http://www.stevejenkins.com/) | |
# Last updated: Aug 14, 2016 | |
# Based on settings & scripts by Atlantisman, TK, and CompTech | |
# RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER | |
# Script runs best if you copy and paste in sections | |
#______________________Basic Firewall Setup_______________________________ | |
configure |
This file contains 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 | |
INFLUXDB_HOST="localhost" | |
INFLUXDB_PORT="8086" | |
DATABASE="home" | |
[ -f /etc/default/speedtest_tester ] && . /etc/default/speedtest_tester | |
while [[ $# > 0 ]]; do | |
key="$1" |
This file contains 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 plex is not running, don't do anything. | |
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l` | |
if [ "$plex_running" -eq 1 ]; then | |
exit 0 | |
fi | |
# Test Plex web interface. If it's dead, this'll time out in a few seconds. | |
curl -I -m 8 "http://localhost:32400/library/sections" > /dev/null 2>&1 |
This file contains 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
yum -y install patch dkms kernel-devel | |
wget https://github.com/amzn/amzn-drivers/archive/ena_linux_1.1.3.tar.gz | |
tar zxvf ena_linux_1.1.3.tar.gz -C /usr/src/ | |
mv /usr/src/amzn-drivers-ena_linux_1.1.3 /usr/src/ena-1.1.3 | |
cat <<EOF > /usr/src/ena-1.1.3/dkms.conf | |
PACKAGE_NAME="ena" | |
PACKAGE_VERSION="1.1.3" | |
AUTOINSTALL="yes" |
This file contains 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
version: "3" | |
networks: | |
default: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.16.57.0/24 | |
services: |
This file contains 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
sudo su | |
yum --enablerepo=extras install epel-release | |
yum -y install patch dkms kernel-devel perl | |
yum update | |
#Required for kernel num 5: | |
yum --enablerepo=elrepo-kernel -y install kernel-ml-devel | |
reboot |
This file contains 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
def static getenv(path = ".env") { | |
def env = [:] | |
def file = new File(path) | |
if (file.exists()) { | |
file.eachLine { line -> | |
line = line.trim() | |
if (line != "" && !line.startsWith("#")) { | |
def pair = line.split("=", 2) | |
env[pair[0].trim()] = pair.length == 2 ? pair[1].trim() : "" |
This file contains 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
version: '3' | |
services: | |
plex: | |
image: plexinc/pms-docker:beta | |
container_name: plex | |
restart: always | |
network_mode: host | |
volumes: | |
- $PWD/plex/config:/config |
OlderNewer