Skip to content

Instantly share code, notes, and snippets.

View rvagg's full-sized avatar

Rod Vagg rvagg

View GitHub Profile
@rvagg
rvagg / v8-changelog-4.3+4.4.md
Created June 29, 2015 06:38
v8-changelog --trim --range '>=4.3 <4.5'

4.4.65 (2015-05-13)

  • Deprecate Isolate::New.
  • Factor out core of Array.forEach and .every, for use in TypedArrays (issue 3578).

4.4.63 (2015-05-11)

  • Let Runtime_GrowArrayElements accept non-Smi numbers as |key| (Chromium issue 485410).
v0.7.0 -------------------------------------------
node@v0.12.4 : FAIL wrote output to /tmp/nan-dnt-v0.12.4.out
node@v0.12.3 : FAIL wrote output to /tmp/nan-dnt-v0.12.3.out
node@v0.12.2 : FAIL wrote output to /tmp/nan-dnt-v0.12.2.out
node@v0.12.1 : FAIL wrote output to /tmp/nan-dnt-v0.12.1.out
node@v0.12.0 : FAIL wrote output to /tmp/nan-dnt-v0.12.0.out
node@v0.10.38: FAIL wrote output to /tmp/nan-dnt-v0.10.38.out
node@v0.10.37: FAIL wrote output to /tmp/nan-dnt-v0.10.37.out
node@v0.10.36: FAIL wrote output to /tmp/nan-dnt-v0.10.36.out
node@v0.10.35: PASS wrote output to /tmp/nan-dnt-v0.10.35.out[2
@rvagg
rvagg / install-node.sh
Last active July 13, 2026 02:02
install-node.sh - simple script to fetch and install Node.js releases and nightlies on Linux (x86, x64 & ARM) and OS X
#!/bin/bash
# install-node.sh: download and install an official Node.js build from
# nodejs.org, or an unofficial-builds.nodejs.org build for some platforms the
# official project does not cover (musl/Alpine, ARMv6/Raspberry Pi, RISC-V,
# LoongArch, old-glibc x64 systems). YMMV, caveat emptor, etc.
#
# The download is verified against the publisher's SHASUMS256.txt before
# anything is written to the target directory.
#
@rvagg
rvagg / changelog-maker
Created April 4, 2015 12:45
io.js 1.6.4 changelog-maker
rvagg@fletcher ~$ git clone git://github.com/iojs/io.js.git
Cloning into 'io.js'...
remote: Counting objects: 149486, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 149486 (delta 0), reused 0 (delta 0), pack-reused 149481
Receiving objects: 100% (149486/149486), 122.22 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (112753/112753), done.
Checking connectivity... done.
rvagg@fletcher ~$ cd io.js/
rvagg@fletcher (v1.x) ~/io.js$ changelog-maker --group
@rvagg
rvagg / armv7-Makefile
Created March 2, 2015 04:05
OpenSSL 1.0.2 config for ARMv7 & ARMv8/AArch64
### Generated automatically from Makefile.org by Configure.
##
## Makefile for OpenSSL
##
VERSION=1.0.2
MAJOR=1
MINOR=0.2
SHLIB_VERSION_NUMBER=1.0.0
@rvagg
rvagg / nexus-check.js
Created February 17, 2015 02:40
Nexus 64GB Check
// check if a Nexus 64GB is available
const urls = {
'White 64GB' : 'https://play.google.com/store/devices/details/Nexus_6_64_GB_Cloud_White?id=nexus_6_white_64gb&psid=3&iphc=true'
//, 'White 32GB' : 'https://play.google.com/store/devices/details/Nexus_6_32_GB_Cloud_White?id=nexus_6_white_32gb&psid=3&iphc=true'
, 'Blue 64GB' : 'https://play.google.com/store/devices/details/Nexus_6_64_GB_Midnight_Blue?id=nexus_6_blue_64gb&psid=3&iphc=true'
//, 'Blue 32GB' : 'https://play.google.com/store/devices/details/Nexus_6_32_GB_Midnight_Blue?id=nexus_6_blue_32gb&psid=3&iphc=true'
}
@rvagg
rvagg / compile error
Created November 7, 2014 01:05
ubuntu 12.04 node compile error, gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04)
In file included from ../src/cares_wrap.cc:24:0:
../src/async-wrap.h:64:29: error: expected ‘;’ at end of member declaration
../src/async-wrap.h:64:31: error: ‘override’ does not name a type
In file included from ../src/cares_wrap.cc:29:0:
../src/req_wrap.h:48:12: error: expected ‘;’ at end of member declaration
../src/req_wrap.h:48:14: error: ‘override’ does not name a type
In file included from ../src/fs_event_wrap.cc:22:0:
../src/async-wrap.h:64:29: error: expected ‘;’ at end of member declaration
../src/async-wrap.h:64:31: error: ‘override’ does not name a type
../src/cares_wrap.cc:234:22: error: expected ‘;’ at end of member declaration
@rvagg
rvagg / .jshintrc
Created November 6, 2014 03:49
.jshintrc
{
"predef": [ ]
, "bitwise": false
, "camelcase": false
, "curly": false
, "eqeqeq": false
, "forin": false
, "immed": false
, "latedef": false
, "noarg": true
@rvagg
rvagg / gist:96c959b7c31eedfa2c5c
Last active August 29, 2015 14:05
100 most downloaded npm packages for the period 6-Jul-2014 to 6-Aug-2014
1: async (5,306,139)
2: mkdirp (3,989,808)
3: request (3,822,748)
4: glob (3,750,793)
5: minimatch (3,476,898)
6: commander (3,475,471)
7: debug (3,454,917)
8: qs (3,372,442)
9: inherits (3,105,353)
10: graceful-fs (3,005,257)
<h1>Testing code against many Node versions with Docker</h1>
<h2 id="the-problem-testing">The problem: testing</h2>
<p><strong><a href="https://github.com/rvagg/nan">NAN</a></strong> is a project designed to assist in building native (C++) Node.js add-ons while maintaining compatibility with Node and V8 from Node versions 0.8 onwards. V8 is undergoing <em>major</em> internal changes which is making add-on development very difficult; NAN's purpose is to abstract that pain. Instead of having to keep your code compatible across Node/V8 versions, NAN does it for you, and this is no simple task. But this means that we have to be sure to keep NAN tested and compatible with <em>all</em> of the versions it claims to support. This is no trivial exercise!</p>
<p><strong><a href="https://travis-ci.org/">Travis CI</a></strong> can help a little with this. It's possible to use <a href="https://github.com/creationix/nvm">nvm</a> to test across different versions of Node.js even beyond the officialy supported versions, we'v