Skip to content

Instantly share code, notes, and snippets.

#!/bin/vbash
# If IPv6 is working - exit.
/bin/ping6 -c 2 -n google.com > /dev/null
if [ $? == 0 ]; then
echo "IPv6 working."
exit 0;
fi
# If we have no working IPv4 connection - exit.
@hcooper
hcooper / roku_plex.py
Created November 3, 2016 06:40
Remotely control roku & plex
#!/usr/bin/env python3
from plexapi.server import PlexServer
from roku import Roku
PLEX_SERVER = 'http://plexserver:32400'
PLEX_TOKEN = '#############'
PLEX_CLIENT = 'Roku 3 - 4E755U058982'
ROKU_HOSTNAME = 'roku'
ROKU_PLEX_APP = 'Plex'
@hcooper
hcooper / frigate_0.10_notification.yaml
Last active May 18, 2022 00:28 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements