Skip to content

Instantly share code, notes, and snippets.

View PastaGringo's full-sized avatar

PastaGringo PastaGringo

View GitHub Profile
@PastaGringo
PastaGringo / plexDownload.php
Created July 4, 2017 08:46 — 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 …
<?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 *
@PastaGringo
PastaGringo / resetBandwith.sh
Created November 28, 2017 15:48
Reset QuickBox Dashboard bandwith details
#!/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 / gist:935b90f9a2ead5d22cc8a9ce7281b0f7
Last active December 15, 2017 16:26
Get live Plex streams number from telegraf and send them to Influxdb
# 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 / Atomstr_Hex_to_Nsec.sh
Created February 20, 2024 21:18
Retrieving Nsec and Npub from Atomstr database
#/bin/bash
clear
echo
echo " Welcome to"
echo
echo " --- Atomstr Hex to Nsec keys convertor ---"
echo
echo " by PastaGringo"
echo
echo "Checking if Docker is installed..."
@PastaGringo
PastaGringo / Nostr.md
Created February 21, 2024 00:04
Nostr Identity Check

Verifying that I control the following Nostr public key: npub1ky4kxtyg0uxgw8g5p5mmedh8c8s6sqny6zmaaqj44gv4rk0plaus3m4fd2