From 0c8322ee39c2bfcb328656b3f666285482974c34 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 30 Dec 2020 18:03:46 -0500 Subject: add simple sentry --- Biz/Bild/ShellHook.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Biz/Bild') diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh index e307e04..a41d050 100644 --- a/Biz/Bild/ShellHook.sh +++ b/Biz/Bild/ShellHook.sh @@ -80,6 +80,25 @@ function ship() { done } +function run-sentry() { + urls=( + http://que.run + https://devalloc.io + https://simatime.com + https://tv.simatime.com + https://bsima.me + ) + for url in ${urls[@]} + do + code=$(curl -L --max-time 10 --silent --show-error --insecure \ + --output /dev/null \ + --write-out "%{http_code}" "$url") + echo "$code $url" + done +} +export -f run-sentry +alias sentry="watch --exec bash -c run-sentry" + # Poor man's ci function run-ci() { lint **/* && bild **/* -- cgit v1.2.3