Skip to content

Instantly share code, notes, and snippets.

@LukeChannings
LukeChannings / WtFnZb-Renamer.py
Created February 13, 2022 20:21
WtFnZb-Renamer.py
#!/usr/bin/env python3
### NZBGET SCAN SCRIPT
# Extract filenames from subjects containing [PRiVATE]-[WtFnZb]
#
# This extensions extracts obfuscated filenames from .nzb files
# created by WtFnZb.
#
# Supported subject formats:
#
from plexapi.myplex import MyPlexAccount
import os
plex_auth_info = {
"username" : os.environ['PLEX_USERNAME'],
"password" : os.environ['PLEX_PASSWORD'],
"server" : os.environ['PLEX_SERVER_NAME']
}
account = MyPlexAccount(plex_auth_info['username'], plex_auth_info['password'])
@caseyavila
caseyavila / hdhr-listings-to-m3u.py
Last active December 8, 2023 03:13 — forked from aaearon/hdhr-listings-to-m3u.py
Convert HDHomeRun Prime Listings to M3U Format
#!/usr/bin/env python3
#
# this script will convert the hdhomerun listings (channels) to
# m3u format for use with external media players. before running
# this script, be sure to modify the <<config>> variable settings
# below.
#
# Suggested Usage: This script should be run on a cron to keep
# the channel lineup to date. Below is an example of how to execute this script:
# python /path/to/script/hdhomerun-prime-listings-to-m3u.py > /path/to/playlist.m3u
@troyfontaine
troyfontaine / README.md
Last active December 22, 2022 16:04
USG ddclient Upgrade Script

How to use this script?

Why, that's simple! Copy this script to your USG, run chmod +x on it and then, as a user with sudo permission, execute it.

Shamelessly borrowed from Brittanic on the Ubiquiti Unifi forums

How to use it?

Simply run the following command (note, if you are at all security concious-don't run it and instead review the script, then copy it to your USG to execute).

curl https://gist.githubusercontent.com/troyfontaine/7e6f93e32621177fc9a94e823adc52b5/raw/fix_ddns.sh | sudo bash
@ironicbadger
ironicbadger / bash_aliases
Last active June 1, 2024 17:21
Lets Encrypt Reverse Proxy Files
alias dcp='docker-compose -f /opt/docker-compose.yml '
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
alias df='df -h -x aufs -x tmpfs -x udev'
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default'
@anthonyeden
anthonyeden / RDS_INSTALL.bat
Created October 28, 2017 02:59
Let's Encrypt & Microsoft Remote Desktop Services - Installation Script
"C:\Program Files\Lets Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/"
powershell -File "C:\Program Files\Lets Encrypt\RDS_INSTALL_CERT.ps1" -CertificateImport "C:\ProgramData\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\remote.example.com-all.pfx" -RDCB remote.example.com
#!/bin/bash
# Edit me
rclone_bin="/rclone/rclone"
rclone_options="--config=/rclone/rclone.conf --buffer-size 500M --checkers 16"
rclone_cloud_endpoint="gd:"
local_dir="/documents"
limit_gb=750
################################################################################
@rwenz3l
rwenz3l / upload.sh
Created August 24, 2016 08:13
Upload Script for Amazon Cloud Drive
# UPLOAD SCRIPT
echo "--> Pause All Torrents/Stop Deluge"
# deluge-console "pause *;quit"
systemctl stop deluged
echo "--> Stop PlexServer"
systemctl stop plexmediaserver
echo "--> Unmount EncFS and ACD"
fusermount -z -u /share/acd-dec/
fusermount -z -u /share/acd-raw/
echo "--> Clear ACD Cache and Sync"
@rwenz3l
rwenz3l / maintain.sh
Last active November 23, 2016 00:10
Maintenance Script for ACD
echo "(===== Checks =====)"
if [[ -d "/share/acd-raw/plexcrypt" ]];
then
echo "Properly Mounted";
else
echo "Crashed";
echo "(===== Unmount =====)"
echo "Unmount EncFS ACD"
fusermount -z -u /share/acd-dec
@higebu
higebu / setup_snmp_trap_monitoring_for_vcsa_with_zabbix.md
Last active December 22, 2023 09:28
Setup SNMP Trap monitoring for vCenter Server Appliance with Zabbix

Setup SNMP Trap monitoring for vCenter Server Appliance with Zabbix

Environment

  • VCSA 6.0
  • Zabbix 3.0
    • on Ubuntu 14.04

Zabbix Server side