Skip to content

Instantly share code, notes, and snippets.

View talwai's full-sized avatar

Aaditya Talwai talwai

View GitHub Profile
@talwai
talwai / empty.yaml
Created June 20, 2016 10:00
empty agent conf
init_config:
instances:
[{}]
#!/bin/bash
# (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# Datadog Trace Agent installation script: install and setup the Trace Agent on supported Linux distributions
# using the package manager and Datadog repositories.
set -e
logfile="dd-trace-agent-install.log"
@talwai
talwai / datadog.repo
Created February 8, 2017 01:11
dd-agent yum beta repo
[datadog]
name = Datadog, Inc.
baseurl = https://yum.datadoghq.com/beta/x86_64/
enabled=1
gpgcheck=1
priority=1
gpgkey=https://yum.datadoghq.com/DATADOG_RPM_KEY.public
https://yum.datadoghq.com/DATADOG_RPM_KEY_E09422B3.public
import functools
import logging
from .provider import DefaultContextProvider
from .context import Context
from .sampler import AllSampler
from .writer import AgentWriter
from .span import Span
from . import compat
i-2bc93a2a
From b547ad0a498bdba1c7ab357301cde806b310373e Mon Sep 17 00:00:00 2001
From: talwai <[email protected]>
Date: Thu, 27 Apr 2017 12:10:23 -0400
Subject: [PATCH] django: handle tuple INSTALLED_APPS
---
ddtrace/contrib/django/patch.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ddtrace/contrib/django/patch.py b/ddtrace/contrib/django/patch.py
From d6217f15009760aec1a0d68ddcbb2278ceee4ac8 Mon Sep 17 00:00:00 2001
From: talwai <[email protected]>
Date: Thu, 27 Apr 2017 12:10:23 -0400
Subject: [PATCH] django: handle tuple INSTALLED_APPS
---
ddtrace/contrib/django/patch.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/ddtrace/contrib/django/patch.py b/ddtrace/contrib/django/patch.py
# -*- coding: utf-8; fill-column: 76 -*-
"""Signals and events.
A small implementation of signals, inspired by a snippet of Django signal
API client code seen in a blog post. Signals are first-class objects and
each manages its own receivers and message emission.
The :func:`signal` function provides singleton behavior for named signals.
"""
--- /home/vagrant/python/lib/python2.7/site-packages/blinker/base.py 2017-05-12 22:29:27.020638000 +0000
+++ base.py 2017-05-12 22:29:02.000000000 +0000
@@ -21,6 +21,13 @@
symbol,
)
+import logging;
+FORMAT = '%(asctime)s %(message)s'
+
+log = logging.getLogger()
neighborhood median_assessed_value
Borough Park 140507
East Flushing 797135
Auburndale 2618530
Murray Hill 3454311
East Elmhurst 639913
Morrisania-Melrose 3652557
Rikers Island 1655422
Hollis 415475
Manhattanville 2257745