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
<VirtualHost *:80> | |
ServerName sicktest.dirtycajunrice.com | |
Redirect / http://dirtycajunrice.com:8081/ | |
</VirtualHost> | |
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
while [[ ! $extip ]]; do | |
extip=$(curl -s http://checkip.amazonaws.com/) | |
done | |
whiptail --title Complete --msgbox \ "Check that everything has been set up correctly by going to: | |
Internal IP: http://$(ip a | awk '/inet / {sub(/\/.*/, "", $2); print $2}' | sed '/^127/d' | head -n1):8081 | |
OR | |
External IP: http://$extip:8081 |
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
while [[ ! $extip ]]; do | |
extip=$(curl -s http://checkip.amazonaws.com/) | |
done | |
whiptail --title Complete --msgbox \ "Check that everything has been set up correctly by going to: | |
Internal IP: http://$(ifconfig | grep 'inet end.' | cut -d ':' -f 2 | awk '{ print $1 }' | \ | |
grep -E '^(192\.168|10\.|172\.1[6-9]\.|172\.2[0-9]\.|172\.3[01]\.)'):8081 | |
OR | |
External IP: http://$extip:8081 |
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 | |
# Check if ran by root | |
if [[ $UID -ne 0 ]]; then | |
echo 'Script must be run as root' | |
exit | |
fi | |
# sqlite3 database query to pull list of shows from sickbeard.db | |
sqlite3 /opt/SickRage/sickbeard.db "SELECT show_name, status FROM tv_shows" | sort > /tmp/shows.list |
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
PlexShowSilencer/ | |
├── config.ini | |
├── LICENSE | |
├── plexshowsilencer | |
│ ├── config.py | |
│ ├── dbcreate.py | |
│ ├── dbpopulate.py | |
│ ├── __init__.py | |
│ ├── plexauth.py | |
│ ├── __pycache__ |
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
def userexistcheck(username): | |
connection = sqlite3.connect(DB_REL_PATH) | |
c_db = connection.cursor() | |
c_db.execute("SELECT ? FROM users", (username,)) | |
user = c_db.fetchone() | |
connection.close() | |
if user: | |
user_exist = True | |
else: | |
user_exist = False |
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
# requires a2enmod proxy proxy_http proxy_wstunnel rewrite ssl | |
<VirtualHost *:80> | |
ServerName plex.domain.tld | |
ServerAlias plex.domain2.tld | |
Redirect / https://plex.domain.tld | |
</VirtualHost> | |
<VirtualHost *:443> |
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 | |
mkdir /opt/filebot || echo "You need to run this script as a user with write permissions to /opt" && exit 1 | |
cd /opt/filebot | |
/bin/sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/portable.sh)" |
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
root@netbox:/opt# ln -sfn netbox-2.1.5/ netbox | |
root@netbox:/opt# cd netbox | |
root@netbox:/opt/netbox# ./upgrade.sh | |
Running NetBox upgrade as root, press any key to continue or ^C to cancel | |
Cleaning up stale Python bytecode (find . -name "*.pyc" -delete)... | |
Updating required Python packages (pip3 install -r requirements.txt --upgrade)... | |
Requirement already up-to-date: cffi>=1.8 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1)) | |
Requirement already up-to-date: cryptography>=1.8 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 2)) | |
Requirement already up-to-date: Django>=1.11 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 3)) | |
Requirement already up-to-date: django-cors-headers>=2.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 4)) |
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
10.0.10.3 - - [19/Dec/2017:21:56:34 -0800] "GET /get_current_activity_instance?rating=6.8&transcode_width=&stream_bitrate=2579&bandwidth=5681&optimized_version=0&audio_bitrate_mode=&parent_rating_key=8092&rating_key=8094&platform_version=3.0&thumb=%2Flibrary%2Fmetadata%2F8094%2Fthumb%2F1511830907&title=Don%27t+Be+Afraid+of+the+Dark&video_codec_level=31&tagline=&transcode_hw_decode=&audio_sample_rate=44100&user_rating=&platform=Samsung&stream_video_ref_frames=3&location=wan&transcode_container=&audio_channel_layout=stereo&subtitle_codec=&is_home_user=0&transcode_hw_encode_title=&stream_container_decision=direct+play&audience_rating=&full_title=American+Horror+Story+-+Don%27t+Be+Afraid+of+the+Dark&ip_address=98.207.160.3&subtitles=0&stream_subtitle_language=&channel_stream=0&video_bitrate=2579&is_allow_sync=0&stream_video_bitrate=2579&summary=Ally%2C+Ivy+and+Oz+meet+the+new+neighbors.+Kai+runs+for+city+council.+Detective+Samuels+investigates+a+murder.+A+blackout+terrorizes+Ally.&stream_audio_decision=direct+pla |
OlderNewer