Skip to content

Instantly share code, notes, and snippets.

@Deuteu
Deuteu / curl_01.sh
Created May 21, 2018 22:04
DogMetrics
curl -X POST -H "Content-type: application/json" \
-d "{ \"series\" :
[{\"metric\":\"yuso_test.examples.count\",
\"points\":[[1526661488, 58]]}
]
}" \
'https://api.datadoghq.com/api/v1/series?api_key=<api_key>
#!/bin/bash
#This one mails you the ip if it changes
#Deuteu inspired and guided by Allegrem
#Env variables
path="/home/user/ip_script"
old="$path/ip_old.dat"
mail="$path/ip_mail.txt"
log="$path/ip_log.log"