This file contains hidden or 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
dash_id=xxxx | |
api_key=xxx | |
app_key=xxx | |
# 1. export | |
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
# 2. edit dash.json | |
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |
This file contains hidden or 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
#! /usr/bin/env python3 | |
from json import load, dump | |
import sys | |
if len(sys.argv) != 3: | |
print("usage: %s INFILE OUTFILE", file=sys.stderr) | |
with open(sys.argv[1], "rt") as inf: |
This file contains hidden or 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
Send-MailMessage -From <from> -to <to> -subject <subject> -SmtpServer email-smtp.us-east-1.amazonaws.com -Credential | |
$(New-Object System.Management.Automation.PSCredential -argumentlist <AWS_ACCESS_KEY>, | |
$(ConvertTo-SecureString -AsPlainText -String <AWS_SECRET_KEY> -Force) | |
) | |
-UseSsl -Port 587 |
This file contains hidden or 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
target=diffSeries( | |
app.important.stuff, | |
averageSeries( | |
timeShift(app.important.stuff, "-7d"), | |
timeShift(app.important.stuff, "-14d"), | |
timeShift(app.important.stuff, "-21d") | |
) | |
) |
This file contains hidden or 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
tn = [ | |
[75], | |
[95,64], | |
[17,47,82], | |
[18,35,87,10], | |
[20, 4,82,47,65], | |
[19, 1,23,75, 3,34], | |
[88, 2,77,73, 7,63,67], | |
[99,65, 4,28, 6,16,70,92], | |
[41,41,26,56,83,40,80,70,33], |