Skip to content

Instantly share code, notes, and snippets.

View benarent's full-sized avatar
💼

Ben Arent benarent

💼
View GitHub Profile
@benarent
benarent / Librato.json
Last active March 22, 2017 16:53
StatsD Instructions
{
"event": "librato_",
"url": "https://metrics-api.librato.com/v1/measurements",
"requestType": "POST",
"auth": {
"username": "YOUR_LIBRATO_USERNAME",
"password": "YOUR_LIBRATO_API_TOKEN"
},
"json": {
"tags": {
@benarent
benarent / gist:ebef3e79752044a4480c9e72bb9a3aaa
Created February 23, 2017 23:43
All Rainforest IPs for Google Anayltics
107\.170\.58\.26|136\.243\.34\.202|136\.243\.61\.144|144\.76\.106\.134|144\.76\.184\.203|144\.76\.222\.134|144\.76\.39\.177|144\.76\.45\.197|144\.76\.79\.99|144\.76\.84\.173|144\.76\.93\.110|148\.251\.0\.38|148\.251\.13\.134|148\.251\.151\.9|148\.251\.81\.139|159\.203\.36\.96|176\.9\.104\.78|176\.9\.111\.175|176\.9\.120\.98|176\.9\.122\.86|176\.9\.126\.173|176\.9\.142\.197|176\.9\.144\.139|176\.9\.148\.174|176\.9\.150\.147|176\.9\.151\.195|176\.9\.156\.166|176\.9\.18\.90|176\.9\.19\.67|176\.9\.2\.102|176\.9\.2\.45|176\.9\.26\.108|176\.9\.26\.118|176\.9\.28\.167|176\.9\.30\.239|176\.9\.32\.6|176\.9\.36\.105|176\.9\.37\.10|176\.9\.6\.149|176\.9\.66\.71|176\.9\.80\.103|176\.9\.91\.135|178\.63\.100\.16|178\.63\.101\.7|178\.63\.14\.136|178\.63\.22\.133|178\.63\.70\.204|178\.63\.83\.83|178\.63\.9\.77|188\.40\.127\.2|188\.40\.134\.143|188\.40\.32\.78|188\.40\.76\.201|188\.40\.88\.202||188\.40\.89\.135|188\.40\.98\.213|213\.239\.199\.226|213\.239\.204\.102|213\.239\.204\.92|46\.4\.100\.243|46\.4\.103\.15|46\.4\.104\.
@benarent
benarent / adc.js
Last active February 14, 2017 22:29
Librato Conversion ADC Script.js
<script type="text/javascript">
// code via https://github.com/librato/unbounce
var AdStorage, MarketingTracking, Tracking, initTracking, initValidations,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
AdStorage = (function() {
function AdStorage() {
var params;
if (this.getUriParams() != null) {
https://www.clearslide.com/product/freetrial?utm_source=google&utm_medium=cpc&utm_campaign=Brand&utm_group=ClearSlide&utm_content=sales+platform&_bk=clearside&_bt=137653423871&_bm=e&gclid=CMCS_JWqxM8CFQaDfgodqwkOug
Delivered-To: b@librato.com
Received: by 10.31.82.5 with SMTP id g5csp2289095vkb;
Tue, 20 Oct 2015 15:59:03 -0700 (PDT)
X-Received: by 10.50.122.106 with SMTP id lr10mr6711097igb.86.1445381943373;
Tue, 20 Oct 2015 15:59:03 -0700 (PDT)
Return-Path: <bounces+933247-4000-b=librato.com@emailer.hubspot.com>
Received: from o1.mail6.shared.hubspot.com (o1.mail6.shared.hubspot.com. [198.37.146.111])
by mx.google.com with ESMTPS id w8si20583913igb.83.2015.10.20.15.59.02
for <b@librato.com>

Keybase proof

I hereby claim:

  • I am benarent on github.
  • I am benarent (https://keybase.io/benarent) on keybase.
  • I have a public key whose fingerprint is F761 316B 1106 0F14 6B17 17EB 6857 1B9E DB02 FD49

To claim this, I am signing this object:

window._pa = window._pa || {};
_pa.segments = [{
"name": "All visitors",
"id": 932517,
"regex": ".*"
}, {
"name": "Blog Visitors",
"id": 962428,
"regex": "blog.airbrake.io"
}, {
Airbrake.configure do |config|
config.api_key = 'myapikey'
config.environment_name = `hostname` # or whatever else
end
@benarent
benarent / gist:4294d6e620ec5ec6239e
Last active August 29, 2015 14:10
Temporary direct IP access to Airbrake.io

As part of our current DNS outage https://twitter.com/airbrake/status/539542662110384130; We are providing these instructions to get access to airbrake.io UI.

Since api.airbrake.io is hosted on DNSimple; sending of errors will be stopped on some machines. We are still seeing a lot of traffic come in, but you can update your config to point to below IP too.

For insturcitons on how to update /etc/hosts with the below.

104.130.92.120 airbrake.io
104.130.92.120 [your-account-subdomain].airbrake.io
@benarent
benarent / gist:02771ebabba1f73a92c8
Created May 5, 2014 15:55
Vyclone Embed Video
Delivered-To: benarent@gmail.com
Received: by 10.70.57.194 with SMTP id k2csp454635pdq;
Thu, 1 May 2014 06:38:40 -0700 (PDT)
X-Received: by 10.236.147.211 with SMTP id t59mr14351161yhj.61.1398951519747;
Thu, 01 May 2014 06:38:39 -0700 (PDT)
Return-Path: <bounce-md_30067723.53624e53.v1-b92f7deac911460ca899f449b3b58d22@mandrillapp.com>
Received: from mail128-2.atl41.mandrillapp.com (mail128-2.atl41.mandrillapp.com. [198.2.128.2])
by mx.google.com with ESMTP id c19si41889044yhn.183.2014.05.01.06.38.39
for <benarent@gmail.com>;
Thu, 01 May 2014 06:38:39 -0700 (PDT)