Skip to content

Instantly share code, notes, and snippets.

View ilhaan's full-sized avatar

Ilhaan Rasheed ilhaan

View GitHub Profile
#!/bin/bash
# If plex is not running, don't do anything.
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`
if [ "$plex_running" -eq 1 ]; then
exit 0
fi
# Test Plex web interface. If it's dead, this'll time out in a few seconds.
curl -I -m 8 "http://localhost:32400/library/sections" > /dev/null 2>&1
### Keybase proof
I hereby claim:
* I am ilhaan on github.
* I am ilhaan (https://keybase.io/ilhaan) on keybase.
* I have a public key whose fingerprint is 2F21 818F 554D C44D 71F4 56AB B313 FD17 B6D6 BE70
To claim this, I am signing this object:
network:
version: 2
renderer: networkd
bridges:
dummy0:
dhcp4: no
dhcp6: no
accept-ra: no
interfaces: [ ]
addresses: