This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# copy all URL's to urls.txt file, one per line, empty lines are ok | |
for i in `cat urls.txt | grep http`; do | |
SAVEAS=`basename "$i" | awk -F\? '{print $1}'` | |
if [ ! -f ${SAVEAS} ]; then | |
wget $i -O ${SAVEAS} | |
echo Saving $SAVEAS | |
else | |
echo Skipping $SAVEAS | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "43ac6c1.6e31c94", | |
"type": "subflow", | |
"name": "Check Mem", | |
"info": "", | |
"category": "", | |
"in": [ | |
{ | |
"x": 50, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nextdns trace | |
goroutine 26465 [running]: | |
main.run.func4(0x0, 0x0, 0xc0003e26d0, 0x5) | |
/home/runner/work/nextdns/nextdns/run.go:177 +0x80 | |
github.com/nextdns/nextdns/ctl.(*Server).handle(0xc0000ce070, 0x55f000, 0xc00010c000, 0xc0003e26d0, 0x5, 0x0, 0x0, 0x0) | |
/home/runner/work/nextdns/nextdns/ctl/server.go:125 +0x140 | |
github.com/nextdns/nextdns/ctl.(*Server).handleEvents(0xc0000ce070, 0x55f000, 0xc00010c000) | |
/home/runner/work/nextdns/nextdns/ctl/server.go:114 +0x154 | |
created by github.com/nextdns/nextdns/ctl.(*Server).run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "866a2010.a3d2f", | |
"type": "tab", | |
"label": "Hubitat Presence", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "66b577d7.f56b48", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Code borrowed from https://community.hubitat.com/t/solved-downloading-latest-backup-file/18065/5 | |
# | |
IP=$1 | |
DIR="$2" | |
if [ $# -eq 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp -Rp /var/log/vnstat /config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Code borrowed from https://community.hubitat.com/t/solved-downloading-latest-backup-file/18065/5 | |
# | |
IP=$1 | |
DIR="$2" | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 <IP Address> <Path to store backup>" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check host wyze-camera address 192.168.1.42 | |
if failed icmp type echo | |
count 3 with timeout 5 seconds | |
2 times within 3 cycles | |
then exec "/etc/monit/stop_ffmpeg.sh" | |
else if succeeded for 2 cycles then exec "/etc/monit/start_ffmpeg.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/screen -XS ffmpeg quit |
NewerOlder