Skip to content

Instantly share code, notes, and snippets.

PastaGringo

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
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 https://github.com/barrycarey/Plex-Data-Collector-For-InfluxDB/
# Read flattened metrics from one or more JSON HTTP endpoints
[[inputs.httpjson]]
name = "plex_stats"
servers = [
"http://YourDomain.tld:32400/status/sessions"
]
@PastaGringo
PastaGringo / resetBandwith.sh
Created Nov 28, 2017
Reset QuickBox Dashboard bandwith details
View resetBandwith.sh
#!/bin/bash
interfaces=$(ls /var/lib/vnstat)
echo
echo "Resetting QuickBox Dashboard bandwith details..."
service vnstat stop
for interface in $interfaces
do
rm -rf "/var/lib/vnstat/$interface" "/var/lib/vnstat/.$interface"
/usr/bin/vnstat -u -i $interface &> /dev/null
done
@PastaGringo
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
<?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.