diff options
author | Ben Sima <ben@bsima.me> | 2020-12-30 18:03:46 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-12-30 18:03:46 -0500 |
commit | 0c8322ee39c2bfcb328656b3f666285482974c34 (patch) | |
tree | 02e2df3b5c39284f2c9da10481040f6ebb402136 | |
parent | 7ec9b3277dc6858c2acf752540526e1ee5db0ea2 (diff) |
add simple sentry
-rw-r--r-- | Biz/Bild/ShellHook.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 **/* |