Skip to content

Instantly share code, notes, and snippets.

View MylesBorins's full-sized avatar

Myles Borins MylesBorins

View GitHub Profile
@MylesBorins
MylesBorins / Audit-v6-minors.md
Last active January 11, 2018 18:54
branch-diff v6.x-staging upstream/v9.x --exclude-label semver-major,dont-land-on-v6.x,backport-requested-v6.x,backported-to-v6.x --require-label semver-minor --filter-release
  • [f82439b6a0] - (SEMVER-MINOR) http: add rawPacket in err of clientError event (XadillaX) #17672
  • [4b0c8759d3] - (SEMVER-MINOR) stream: add flow and buffer properties to streams (Calvin Metcalf) #12855
  • [7008719fb6] - (SEMVER-MINOR) events: remove reaches into _events internals (Anatoli Papirovski) #17440
  • [584e74d8cc] - (SEMVER-MINOR) zlib: add ArrayBuffer support (Jem Bezooyen) #16042
  • [23967b2713] - (SEMVER-MINOR) console: make dirxml an alias for console.log (Benjamin Zaslavsky) [#17152](https://github.com/nodejs/node
@MylesBorins
MylesBorins / ls.c
Created January 8, 2018 16:21
example of super basic ls implementation in c to build `gcc ls.c`
#include <stdio.h>
#include <dirent.h>
int main (int argc, char *argv[ ])
{
DIR *dp;
struct dirent *dirp;
if (argc != 2) {
fprintf(stderr, "usage: ls directory_name\n");
@MylesBorins
MylesBorins / ls.c
Created January 8, 2018 16:21
example of super basic ls implementation in c to build `gcc ls.c`
#include <stdio.h>
#include <dirent.h>
int main (int argc, char *argv[ ])
{
DIR *dp;
struct dirent *dirp;
if (argc != 2) {
fprintf(stderr, "usage: ls directory_name\n");
@MylesBorins
MylesBorins / diff.md
Last active June 6, 2018 08:18
branch-diff v10.x-staging upstream/master --exclude-label semver-major,dont-land-on-v10.x,backport-requested-v10.x,backported-to-v10.x --filter-release
@MylesBorins
MylesBorins / v8
Created December 8, 2017 02:52
http2 debug
(node:33490) ExperimentalWarning: The http2 module is an experimental API.
Http2Session client (13) session created
Http2Session client (13) i/o stream consumed
Http2Session client (13) submitting 0 settings
Http2Session client (13) settings submitted
Http2Priority: parent: 0, weight: 16, exclusive: 0
Http2Session client (13) request submitted
Http2Session client (13) submitting request
Http2Stream 1 (16) [Http2Session client (13)] writable side shutdown
Http2Session client (13) request submitted, new stream id 1
@MylesBorins
MylesBorins / common-crashOnUnhandledRejection.js
Last active November 22, 2017 03:05
code-and-learn taiwan
let output = ''
const files = [
'addons/callback-scope/test-resolve-async.js',
'addons/make-callback-recurse/test.js',
'addons-napi/test_promise/test.js',
'async-hooks/test-promise.chain-promise-before-init-hooks.js',
'async-hook/test-promise.js',
'async-hooks/test-promise.promise-before-init-hooks.js',
'known_issues/test-inspector-cluster-port-clash.js',
@MylesBorins
MylesBorins / omg.md
Last active October 31, 2017 04:58
something here broke shit
  • [e6dfd59be0] - lib: pass internalBinding more implicitly (Anna Henningsen) #16218
  • [1f8d527e94] - (SEMVER-MAJOR) path: deprecate internal _makeLong, replace (James M Snell) #14956
  • [9d7574eef5] - (SEMVER-MAJOR) module: deprecate Module._debug (Jackson Tian) #13948
  • [5f22375922] - (SEMVER-MAJOR) src: add support to pass flags to dlopen (Ezequiel Garcia) #12794
  • [a517466aa7] - (SEMVER-MAJOR) module: mark DEP0019 as EOL and remove compat code (Roman Reiss) #3384
@MylesBorins
MylesBorins / audit-v8.md
Last active October 18, 2018 15:12
branch-diff v8.x-staging upstream/v10.x --exclude-label semver-major,semver-minor,dont-land-on-v8.x,backport-requested-v8.x,backported-to-v8.x,baking-for-lts --filter-release
'use strict';
const common = require('../common');
const assert = require('assert');
const path = require('path');
const spawn = require('child_process').spawn;
const childPath = path.join(common.fixturesDir,
'parent-process-nonpersistent.js');
let persistentPid = -1;
From b80aedf4c19b6d74d6ad303f74d157dc9ddd17e0 Mon Sep 17 00:00:00 2001
From: Sam Roberts <vieuxtech@gmail.com>
Date: Fri, 14 Jul 2017 11:05:00 -0700
Subject: [PATCH] net: support passing undefined to listen()
For consistency with 4.x and 8.x.
This commit also contains a forward port of
https://github.com/nodejs/node/pull/14232 to confirm that 4.x and 6.x
behave identically with respect to the port argument.