Last active
August 29, 2015 14:06
-
-
Save Shadey/a71db6fec66a27a7405c to your computer and use it in GitHub Desktop.
I CANT MISS WHEN POMF COMES BACK UP I RUN THIS EVERY 15 MINUTE BRUH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title=$( curl 'http://pomf.se' -so - | grep -iPo '(?<=<title>)(.*)(?=</title>)') | |
[ "$title" == "Pomf will be back shortly" ] && notify-send "Pomf is down" ":c" || notify-send "Pomf is up" "c:" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment