Skip to content

Instantly share code, notes, and snippets.

@jonarddoci
Last active February 14, 2017 13:13
#!/bin/bash -ex
TIME=`gdate +%s%N`
function alert(){
curl -XPOST 'https://api.opsgeni.us/v1/json/alert' -d '
{
"apiKey": "your-api-key-here",
"message" : "TEST ALERT '`echo $TIME`'"
}'
}
while : ; do
sleep 0.5
alert
echo -n "$i "; ((i++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment