Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sud0n1m's full-sized avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
import gulp from 'gulp';
import plugins from 'gulp-load-plugins';
import browser from 'browser-sync';
import rimraf from 'rimraf';
import panini from 'panini';
import yargs from 'yargs';
import lazypipe from 'lazypipe';
import inky from 'inky';
import fs from 'fs';
import siphon from 'siphon-media-query';
@sud0n1m
sud0n1m / event.txt
Last active July 20, 2016 21:56
Code to merge in the customer object and event object formatted as valid JSON.
{
"event":
{{ event | replace: "=>", ":" }},
"customer":
{{ customer | replace: "=>", ":" }}
}
{
"description": "What a fancy postcard",
"to": {
"name": "{{ customer.first_name }} {{ customer.last_name }}",
"address_line1": "{{ customer.address_1 }}",
"address_line2": "{{ customer.address_2 }}",
"address_city": "{{ customer.city }}",
"address_state": "{{ customer.State }}",
"address_zip": "{{ customer.zip }}",
"address_country": "US"
// 1. Add this file to a tests directory and name it netflix.js.
// 2. Create a docker container that mounts that directory
// docker run -it -d --name casper2 -v /mnt/user/tests:/tests rdpanek/casperjs bin/bash
// 3. Set up an hourly cron job by creating a new file
// #!/bin/bash
// docker exec casper2 casperjs /tests/netflix.js
// Then add a command to /etc/cron.hourly/speedtest to run this script in the container and chmod +x that file.
var casper = require('casper').create();
casper.options.waitTimeout = 120000;
@sud0n1m
sud0n1m / gist:280e2adeb6dfd1d596df
Created September 8, 2014 19:59
Helpscout custom app
<p><a href="https://fly.customer.io/#/env/18873/people?search={%customer.email%}">Look up email in Customer.io</a></p>
@sud0n1m
sud0n1m / gist:ce57c129339f3a154b66
Created July 24, 2014 02:14
2 different traceroutes
VPN ENABLED - VyprVPN over Fios
➜ ~ traceroute r10---sn-ab5l6nl7.googlevideo.com
traceroute to r10.sn-ab5l6nl7.googlevideo.com (173.194.130.143), 64 hops max, 52 byte packets
1 router.asus.com (10.0.1.1) 1.147 ms 0.876 ms 0.689 ms
2 10.10.0.1 (10.10.0.1) 55.205 ms 39.399 ms 47.993 ms
3 192.168.32.3 (192.168.32.3) 48.394 ms 42.764 ms 18.131 ms
4 216-166-96-182.fwd.datafoundry.com (216.166.96.182) 42.954 ms
216-166-96-178.fwd.datafoundry.com (216.166.96.178) 60.676 ms
216-166-96-174.fwd.datafoundry.com (216.166.96.174) 36.039 ms

Keybase proof

I hereby claim:

  • I am sud0n1m on github.
  • I am colin (https://keybase.io/colin) on keybase.
  • I have a public key whose fingerprint is 2436 14ED C2EA 7C6E 5917 337D E244 9210 1C14 1D09

To claim this, I am signing this object:

@sud0n1m
sud0n1m / headers
Created June 11, 2014 14:40
Email Headers
Delivered-To: xxxxx@customer.io
Received: by 10.70.91.1 with SMTP id ca1csp274023pdb;
Wed, 11 Jun 2014 06:07:45 -0700 (PDT)
X-Received: by 10.66.246.138 with SMTP id xw10mr13339696pac.142.1402492065471;
Wed, 11 Jun 2014 06:07:45 -0700 (PDT)
Return-Path: <xxxxxxx@akamai.com>
Received: from prod-mail-xrelay07.akamai.com (prod-mail-xrelay07.akamai.com. [72.246.2.115])
by mx.google.com with ESMTP id hj1si37966802pbc.142.2014.06.11.06.07.45
for <xxxxx@customer.io>;
Wed, 11 Jun 2014 06:07:45 -0700 (PDT)
@sud0n1m
sud0n1m / hiring.md
Created June 5, 2014 12:41
Hiring at Customer.io

Hiring at Customer.io

Hiring checklist of things we're looking for

  • Makers & Fixers
  • Love what they do
  • Empathetic
  • Good communicators
  • Independent
  • Willing to help
{"event_type":"email_drafted","event_id":"02c8eb6db56458332fab","timestamp":1394228018,"data":{"customer_id":"464567897564164","email_address":"example@email.com","email_id":250492753,"subject":"Example email","variables":{"email_id":250492753,"customer":{"id":464567897564164,"email":"example@email.com","created_at":1390840358,"reps":"dsfsd","rep":"fghf"}},"template_id":46541,"campaign_id":28825,"campaign_name":"signup"}}
Campaign_id = the same as the ID for a campaign in the UI.
Template_id = the email within the campaign