Skip to content

Instantly share code, notes, and snippets.

@Generator
Generator / monitorr-min.css
Last active August 6, 2021 17:24
Monitorr slim minimal
*{box-sizing: content-box !important;}
body {background:transparent !important;}
#time, #togglemin, #ajaxtimeout, #summary {display:none !important;}
.double-val-label > span, #center, #stats, .col-lg-4, .btnoffline, .btnunknown, .btnonline {box-shadow: none !important; -webkit-box-shadow:none !important;}
#stats {
background-color:transparent !important;
}
@Generator
Generator / Deluge_Throttle.md
Last active June 2, 2023 00:30
Throttle Deluge on Plex stream Start/Stop

Dependencies

  • deluge-console

Install

$ wget -O deluge_throttle.sh https://gist.githubusercontent.com/Generator/67da7dc859634046165320ef061769e0/raw/deluge_throttle.sh
$ chmod +x deluge_throttle.sh

Script Setup

Edit deluge_throttle.sh and set deluged username password .

@Generator
Generator / README.md
Last active June 18, 2023 18:01
Kill Plex Streams without Plex Pass

Inspiration

Inspiration from kill_stream.py but wihtout the need of Plex Pass.
Kill any transconding stream or paused for a long time.

Cons:

  • Client IP blocked for 2 minutes
  • Plex App could hang or crash
  • Can't send messagens to user
  • Requires root or sudo privileges
@Generator
Generator / grive_sync
Last active October 10, 2017 22:47
Grive autosync with inotify
#!/bin/bash
# Google Drive Grive script that syncs your Google Drive folder on change
# This functionality is currently missing in Grive and there are still no
# official Google Drive app for Linux coming from Google.
#
# This script will only detect local changes and trigger a sync. Remote
# changes will go undetected and are probably still best sync on a periodic
# basis via cron.
#
# Kudos to Nestal Wan for writing the excellent Grive software
--- alsa-info.txt.4.1.6-1-ARCH 2015-09-01 23:46:23.013205902 +0100
+++ alsa-info.txt.4.1.6-1-ck 2015-09-01 23:47:02.970785233 +0100
@@ -3,7 +3,7 @@
!!ALSA Information Script v 0.4.64
!!################################
-!!Script ran on: Tue Sep 1 22:27:30 UTC 2015
+!!Script ran on: Tue Sep 1 22:32:53 UTC 2015
@Generator
Generator / log_gen.sh
Last active October 18, 2021 22:05
DD-WRT syslog HTML generator
#!/bin/sh
## DD-WRT Log HTML generator
## Instructions:
## put script in /tmp/www/
## chmod 700 /tmp/www/log_gen.sh
## Add cron job in Administrations panel
## */15 * * * * root /tmp/www/log_gen.sh
## Page available in http://<routerip>/user/syslog.html
## Change nline for number of generated lines