Skip to content

Instantly share code, notes, and snippets.

@garex
Created August 10, 2023 15:41
Show Gist options
  • Save garex/cf45abb6c68f9acf63d2c6c1777f0525 to your computer and use it in GitHub Desktop.
Save garex/cf45abb6c68f9acf63d2c6c1777f0525 to your computer and use it in GitHub Desktop.
Check tickets.sibir-arena.ru is alive
# Remember to chmod +x
while true; do
echo -n .
HTTP_CODE=$(curl --silent -I -X GET https://tickets.sibir-arena.ru/ | head -1 | awk '{print $2}')
[[ 200 = $HTTP_CODE ]] && break
sleep 15
done
notify-send "Sibir arena alive!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment