Skip to content

Instantly share code, notes, and snippets.

Yunong Xiao yunong

Block or report user

Report or block yunong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:37d71152c49ef7b27aca8037b5f47f6d
curl 'http://172.31.248.100:7001/endpoint' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8,hi;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive' --data-binary '{"paths":[["search","p","titles",{"from":0,"to":48},["summary","title"]],["search","p","titles",{"from":0,"to":48},"boxarts","_342x192","webp"],["search","p","titles",{"from":0,"to":48},"current",["runtime","bookmarkPosition"]],["search","p","titles",["id","length","name","trackIds","requestId","referenceId"]],["search","p","person",{"from":0,"to":20},"person","summary"],["search","p","person",{"from":0,"to":20},"referenceId"],["search","p","person",["summary","reference","trackId"]],["search","p","suggestions",{"from":0,"to":20},["referenceId","summary"]],["search","
View gist:017a482b6dc035a75b23457337b5a289
1. a mode when you are pipe()ed to something, where there is automatic backpressure
2. a mode where you are required to call read(), and you've attached a "readable" listener
3. a mode where you have attached a "data" handler, and it just shits out "data" events as fast as possible
4. a mode where no handlers (except maybe "end") are attached, and the stream will do _nothing_ until you move to mode 1-3.
View -
[
{
"eventName": "bunyan-suro-test94b735f2-1a7d-4ade-96f1-4e410da5b44c",
"payload": {
"name": "suro-bunyan-test",
"hostname": "lgwd-yunong",
"pid": 25739,
"level": 30,
"msg": "hi",
"time": "2015-08-03T21:08:39.157Z",
View -
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCkLc1DPolHyIIxes1aO6lZVIdCyMwLnrPFwlhIgP+DUQP+1B3N6nBCSeDQ/BLXKZ4EI1NrMKNiDjOECzqD7m+khvHwnXVK0JeNxQ1ksnzzOtRvjogCipfC2dpUqIgM3MTSziLaB53Klyp9zb9TW1KyySEAKMCtZKuPlV9tTkL2bBde2723JwomUB+hE0rebGGBU9WdcP7msqnZrpzVb2GhKq/6Ld9GlXTXLpc59g3MZz3mY0iHcfpIaUmZrNAllP2NTFjBjxiFJ82iW9hF0RlUGeKoE6NCYdWEfWcfEhQF+2rWamEv7oNjoEnEpRdtZOV6BhT1qrp7w7SGOfe5iCej yxiao@netflix.com
View gist:d296594d2d247039f224
# 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
View -
This file has been truncated, but you can view the full file.
PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUg
c3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3
LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHZl
cnNpb249IjEuMSIgd2lkdGg9IjEyMDAiIGhlaWdodD0iMjc3MCIgb25sb2FkPSJp
bml0KGV2dCkiIHZpZXdCb3g9IjAgMCAxMjAwIDI3NzAiIHhtbG5zPSJodHRwOi8v
d3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMu
b3JnLzE5OTkveGxpbmsiPgo8ZGVmcyA+Cgk8bGluZWFyR3JhZGllbnQgaWQ9ImJh
Y2tncm91bmQiIHkxPSIwIiB5Mj0iMSIgeDE9IjAiIHgyPSIwIiA+CgkJPHN0b3Ag
c3RvcC1jb2xvcj0iI2VlZWVlZSIgb2Zmc2V0PSI1JSIgLz4KCQk8c3RvcCBzdG9w
View -
#
# 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
View CHANGES.md

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
View CHANGES.md

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
View CHANGES.md

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
You can’t perform that action at this time.