Skip to content

Instantly share code, notes, and snippets.

View cstrat's full-sized avatar
🌶️
Spicy!

Chris Stratford cstrat

🌶️
Spicy!
View GitHub Profile
@cstrat
cstrat / fwg_reboot_notifications.sh
Created August 24, 2021 00:03 — forked from mbierman/fwg_reboot_notifications.sh
Firewalla reboot notification via IFTT
#!/bin/bash
dir=$(dirname "$0")
IFTTTKEY="$(cat $dir/rebootdata.txt | grep IFTTTKEY | cut -f2 -d "=" )"
IFTTTrigger="$(cat $dir/rebootdata.txt | grep IFTTTTrigger | cut -f2 -d "=" )"
echo $IFTTTrigger
ONLINE=1
while [ $ONLINE -ne 0 ]
do
@cstrat
cstrat / pi.status.sh
Created May 16, 2020 21:37 — forked from dchakro/pi.status.sh
Bash shell script to print stats about a Raspberry running pihole
#!/bin/bash
# Define colors
RED='\033[91m'
RED_solid='\033[101m'
GREEN='\033[92m'
GREEN_solid='\033[42m'
CYAN='\033[96m'
NC='\033[0m'
BLUE_solid='\e[44m'
@cstrat
cstrat / background.js
Created September 6, 2018 05:52 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});