Skip to content

Instantly share code, notes, and snippets.

View ndaversa's full-sized avatar

Nino D'Aversa ndaversa

View GitHub Profile
### Keybase proof
I hereby claim:
* I am ndaversa on github.
* I am ndaversa (https://keybase.io/ndaversa) on keybase.
* I have a public key ASDVl5V64rkBXled7C3aA0TQMp9zXMw9fzjLNc6PRgHE5go
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ndaversa on github.
  • I am ndaversa (https://keybase.io/ndaversa) on keybase.
  • I have a public key ASCTDr8M1OTYkAU2WOCa_SBOeQe7bXfCKbUfgrTSJ5Ry8Qo

To claim this, I am signing this object:

@ndaversa
ndaversa / plex.py
Last active August 15, 2021 23:46
Python script that will ping a local Plex Media Server to determine if its responding as expected (if not it will kill it and restart it) Bandaid solution used to cure occasional PMS hang ups. This script should be scheduled to run on an interval (eg. every 5 mins) see: https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSy…
#!/usr/bin/env python
from os import system
import sys
import urllib2
import time
import datetime
#from prowlpy import Prowl
def status():
try: