#!/usr/bin/env bash set -euo pipefail domains=( "hyperreal.coffee" "annas-archive.hyperreal.coffee" "anonoverflow.hyperreal.coffee" "bash-hackers.hyperreal.coffee" "bookmarks.hyperreal.coffee" "breezewiki.hyperreal.coffee" "dumb.hyperreal.coffee" "feels.hyperreal.coffee" "files.hyperreal.coffee" "gitlab.hyperreal.coffee" "jargonfile.hyperreal.coffee" "lingva.hyperreal.coffee" "opengist.hyperreal.coffee" "pb.hyperreal.coffee" "searxng.hyperreal.coffee" "techne.hyperreal.coffee" "txtdot.hyperreal.coffee" "zsh-guide.hyperreal.coffee" "zsh-manual.hyperreal.coffee" ) for domain in "${domains[@]}"; do HTTP_STATUS=$(curl -o /dev/null -s -w "%{http_code}\n" "https://${domain}") if [ "$HTTP_STATUS" -ge 400 ]; then curl \ -H prio:urgent \ -H tags:warning \ -d "HTTP Status for $domain: $HTTP_STATUS" \ "http://localhost:8080/http_status" fi done