Skip to content

Instantly share code, notes, and snippets.

View yunong's full-sized avatar

Yunong Xiao yunong

View GitHub Profile
### Keybase proof
I hereby claim:
* I am yunong on github.
* I am yunong (https://keybase.io/yunong) on keybase.
* I have a public key whose fingerprint is 4F53 0077 A080 3662 ACD1 189F FCCF A7FF 506B 9E30
To claim this, I am signing this object:
@yunong
yunong / convert.js
Last active August 29, 2015 14:07 — forked from rf/convert.js
var fs = require('fs');
var infile = process.argv[2];
if (!infile) return console.log("need infile");
var data = fs.readFileSync(infile, 'utf8').split('\n');
var outlines = [];
data.forEach(function(item) {
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var EventEmitter = require('events').EventEmitter;
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var deepEqual = require('deep-equal');
var LRU = require('lru-cache');
var Negotiator = require('negotiator');
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var EventEmitter = require('events').EventEmitter;
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var deepEqual = require('deep-equal');
var LRU = require('lru-cache');
var Negotiator = require('negotiator');

restify Changelog

2.9.0

  • #688 Fix various throttle bugs
  • #691 Fix an issue where posting with text/csv content type crashes Restify
  • #693 Support multiple response header values
  • #704 Allow partial regex for named parameters
  • #726 Allow per-request agent overrides
  • #726 Ebanle {agent: false} option override per request

restify Changelog

2.9.0

  • #688 Fix various throttle bugs
  • #691 Fix an issue where posting with text/csv content type crashes Restify
  • #693 Support multiple response header values
  • #704 Allow partial regex for named parameters
  • #726 Allow per-request agent overrides
  • #726 Ebanle {agent: false} option override per request

restify Changelog

2.9.0

  • #688 Fix various throttle bugs
  • #691 Fix an issue where posting with text/csv content type crashes Restify
  • #693 Support multiple response header values
  • #704 Allow partial regex for named parameters
  • #726 Allow per-request agent overrides
  • #726 Ebanle {agent: false} option override per request
#
# Makefile: basic Makefile for template API service
#
# This Makefile is a template for new repos. It contains only repo-specific
# logic and uses included makefiles to supply common targets (javascriptlint,
# jsstyle, restdown, etc.), which are used by other repos as well. You may well
# need to rewrite most of this file, but you shouldn't need to touch the
# included makefiles.
#
# If you find yourself adding support for new targets that could be useful for
This file has been truncated, but you can view the full file.
PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUg
c3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3
LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHZl
cnNpb249IjEuMSIgd2lkdGg9IjEyMDAiIGhlaWdodD0iMjc3MCIgb25sb2FkPSJp
bml0KGV2dCkiIHZpZXdCb3g9IjAgMCAxMjAwIDI3NzAiIHhtbG5zPSJodHRwOi8v
d3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMu
b3JnLzE5OTkveGxpbmsiPgo8ZGVmcyA+Cgk8bGluZWFyR3JhZGllbnQgaWQ9ImJh
Y2tncm91bmQiIHkxPSIwIiB5Mj0iMSIgeDE9IjAiIHgyPSIwIiA+CgkJPHN0b3Ag
c3RvcC1jb2xvcj0iI2VlZWVlZSIgb2Zmc2V0PSI1JSIgLz4KCQk8c3RvcCBzdG9w
LWNvbG9yPSIjZWVlZWIwIiBvZmZzZXQ9Ijk1JSIgLz4KCTwvbGluZWFyR3JhZGll
@yunong
yunong / gist:d296594d2d247039f224
Created July 22, 2015 22:56
shakti flamegraphs
# Copy node v0.12 binary to the instance
# from your desktop
scp node awsprod:/scratchdata/.
ssh awsprod
oq-scp /scratchdata/node <instance>:/tmp/.
# Update /apps/node/daemontools/run on the instance to use the new version of node.
# restart node
pkill node