Skip to content

Instantly share code, notes, and snippets.

View bunelr's full-sized avatar

Rudy Bunel bunelr

View GitHub Profile
@bunelr
bunelr / twilio-payload-example
Last active August 29, 2015 14:02
Twilio Api Payload
{
"To":"+1347XXXXXX",
"From":"+1347XXXXXXX",
"Body":"Something happened in Datadog"
}
@bunelr
bunelr / nagios.yaml
Created June 24, 2014 18:03
Example Nagios multi conf
init_config:
# - check_freq: 15
instances:
- nagios_conf: /path/to/first/nagios/conf.cfg
collect_events: True
collect_host_performance_data: False
collect_service_performance_data: False
- nagios_conf: /path/to/second/nagios/conf.cfg
@bunelr
bunelr / gist:7e76006106a78f5842b6
Last active August 29, 2015 14:03
Jira Payload
Name: The name you want, maybe your jira project if you plan to use several
url: https://jirausername:jirapassword@yourdomain.atlassian.net/rest/api/2/issue
example: mine is https://rudy:mypassword@rudybunel.atlassian.net/rest/api/2/issue
Check Use Custom payload
Custom payload: {"fields": {"project": {"key": "PER"}, "issuetype": {"name": "Task"}, "description": "There is an issue Look at the following graph: $SNAPSHOT and checkout the event at $LINK", "summary": "$EVENT_TITLE"}}
Don't check Encode as form
@bunelr
bunelr / twilio-refined-payload
Created July 29, 2014 18:23
Datadog Webhooks to Twilio
{
"To":"+1347XXXXXXX",
"From":"+1347XXXXXX",
"Body":"$EVENT_TITLE \n Related Graph: $SNAPSHOT"
}
@bunelr
bunelr / test payload
Created July 31, 2014 13:42
Twilio Test Payload
{
"To":"+1347XXXXXX",
"From":"+1347XXXXXXX",
"Body":"Something happened in Datadog"
}
@bunelr
bunelr / Twilio refined payload
Created July 31, 2014 13:43
Twilio Refined Payload
{
"To":"+1347XXXXXXX",
"From":"+1347XXXXXX",
"Body":"$EVENT_TITLE \n Related Graph: $SNAPSHOT"
}
@bunelr
bunelr / yo.md
Created August 14, 2014 22:00
Yo-Datadog
@bunelr
bunelr / Comand to run.md
Created August 22, 2014 20:32
Debug Command

Try

> import wmi
> conn=wmi.WMI(None)
> res = conn.Win32_PerfFormattedData_PerfDisk_PhysicalDisk()
> print res[0]

If it doesn't work, try:

@bunelr
bunelr / To add to ServiceDefinition.csdef
Last active August 29, 2015 14:05
Install The datadog Agent on Azure
<Task commandLine="installDatadogAgent.cmd YOUR_API_KEY" executionContext="elevated" />
@bunelr
bunelr / Benchmark result
Last active August 29, 2015 14:22
Forward mode
-- Without the monkeypatching (standard nn)
rudy@rudy-Tower:~workspace/utc-caltech[master]
$ time luajit luatools/prediction.lua
data/res/divers-bignn/set09/V010.txt
real 1m1.162s
user 0m51.132s
sys 0m13.084s