Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block PastaGringo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
PastaGringo / gist:935b90f9a2ead5d22cc8a9ce7281b0f7
Last active Dec 15, 2017
Get live Plex streams number from telegraf and send them to Influxdb
View gist:935b90f9a2ead5d22cc8a9ce7281b0f7
# More complete script from @barrycarey
# Read flattened metrics from one or more JSON HTTP endpoints
name = "plex_stats"
servers = [
PastaGringo /
Created Nov 28, 2017
Reset QuickBox Dashboard bandwith details
interfaces=$(ls /var/lib/vnstat)
echo "Resetting QuickBox Dashboard bandwith details..."
service vnstat stop
for interface in $interfaces
rm -rf "/var/lib/vnstat/$interface" "/var/lib/vnstat/.$interface"
/usr/bin/vnstat -u -i $interface &> /dev/null
PastaGringo / plexDownload.php
Created Jul 4, 2017 — forked from kmark/plexDownload.php
The Plex Universal Transcoder Downloader mimics the actions of the Plex/Web media flash player to download transcoded media. The differences begin when the downloader saves the streamed data and pieces it together. First a start.m3u8 playlist file is requested from the server with a query string that defines the transcoding options. Inside the …
View plexDownload.php
* Plex Universal Transcoder Downloader v1.3 *
* See --help or --usage for more info *
* Copyright 2013 Kevin Mark *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
You can’t perform that action at this time.