Skip to content

Instantly share code, notes, and snippets.

View refack's full-sized avatar
🕺
status

Refael Ackermann refack

🕺
status
View GitHub Profile
TAP version 13
1..40
ok 1 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/child_process/child-process-params.js
ok 2 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/child_process/child-process-read-ipc.js
ok 3 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/child_process/child-process-read.js
ok 4 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/child_process/spawn-echo.js
ok 5 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/cluster/echo.js
ok 6 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/common.js
ok 7 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/compare.js
ok 8 - /usr/home/iojs/build/workspace/node-test-linter/benchmark/crypto/aes-gcm-throughput.js
v8_base_3.lib(api.obj) : error LNK2005: "public: void __cdecl v8::HeapProfiler::SetWrapperClassInfoProvider(unsigned short,class v8::RetainedObjectInfo * (__cdecl*)(unsigned short,class v8::Local<class v8::Value>))" (?SetWrapperClassInfoProvider@HeapProfiler@v8@@QEAAXGP6APEAVRetainedObjectInfo@2@GV?$Local@VValue@v8@@@2@@Z@Z) already defined in node.lib(node.dll) [p:\code\nodeLTS\cctest.vcxproj]
v8_base_3.lib(api.obj) : error LNK2005: "public: void __cdecl v8::HeapProfiler::StartTrackingHeapObjects(bool)" (?StartTrackingHeapObjects@HeapProfiler@v8@@QEAAX_N@Z) already defined in node.lib(node.dll) [p:\code\nodeLTS\cctest.vcxproj]
v8_base_3.lib(api.obj) : error LNK2005: "public: void __cdecl v8::CpuProfiler::SetIdle(bool)" (?SetIdle@CpuProfiler@v8@@QEAAX_N@Z) already defined in node.lib(node.dll) [p:\code\nodeLTS\cctest.vcxproj]
v8_base_3.lib(api.obj) : error LNK2005: "public: static class v8::Local<class v8::Context> __cdecl v8::Debug::GetDebugContext(class v8::Isolate *)" (?GetDebugContext@Debug@v8@@SA?AV?$Loc
'use strict'
const assert = require('assert');
class ExtendableError extends Error {
constructor(message = '') {
super(message);
// extending Error is weird and does not propagate `message`
Object.defineProperty(this, 'message', {
configurable: true,
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\bin\\dev\\node\\node.exe',
1 verbose cli 'C:\\bin\\dev\\node\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'rm',
1 verbose cli 'spawn-wrap' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 2a27186bbdf704ac
5 silly install loadCurrentTree
6 silly install readLocalPackageData
@refack
refack / aboutMSI.irclog
Last active July 14, 2017 23:31
refack & tniessen about MSI
[2017-07-13 09:24:50] <tniessen> Hi, are you there?
[2017-07-13 09:44:07] <refack> Yep
[2017-07-13 09:44:40] <refack> Now with irccloud I'm always there
[2017-07-13 09:46:00] <tniessen> Did we get a license?
[2017-07-13 09:46:33] <refack> not yet, but I subscribed...
[2017-07-13 09:47:45] <tniessen> Mhhh okay, seems like even their free option is okay, but only remains connected for 2 hours
[2017-07-13 09:48:01] <tniessen> Anyway, about the Windows installer... I might need to change the structure quite a bit
[2017-07-13 09:48:04] <refack> I was using mIRC with a license I bought some 15 years ago
[2017-07-13 09:48:30] <tniessen> I think it makes sense to put the npm node_modules folder into a truly global directory within Program Files
[2017-07-13 09:48:49] <refack> "optionaly"?
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
@refack
refack / watchify-macos.txt
Created May 25, 2017 21:52
watchify stuck on mac
verbose: watchify using-uid | 502
verbose: watchify using-gid | 20
verbose: watchify using-node | /Users/iojs/build/workspace/citgm-smoker/nodes/osx1010/smoker/bin/node
verbose: watchify using-npm | /Users/iojs/build/workspace/citgm-smoker/nodes/osx1010/smoker/bin/npm
verbose: watchify mk.tempdir | /Users/iojs/build/workspace/citgm-smoker/nodes/osx1010/citgm_tmp/002a1d80-52df-4aa3-bd1f-d3358eef4108
info: browserify npm: | npm install started
verbose: browserify npm: | Using temp directory: "/Users/iojs/build/workspace/citgm-smoker/nodes/osx1010/citgm_tmp/250181ee-9bc7-475e-be1f-c570eb66664a/npm_config_tmp"
verbose: browserify nodedir | Using --nodedir="/Users/iojs/build/workspace/citgm-smoker/nodes/osx1010/node"
warn: browserify npm-install:| npm
warn: browserify npm-install:| info it worked if it ends with ok
@refack
refack / node-check-collaborators.js
Last active May 11, 2017 20:37 — forked from vsemozhetbyt/node-check-collaborators.js
Check if comment authors in PRs are Node.js collaborators
javascript: {
const collaboratorsUsernames = [];
function getPage(url) {
return fetch(url, {mode: 'same-origin', credentials: 'same-origin'}).then(r => {
return r.text();
}).then(text => {
const x = /itemprop="name"\>(\w+)\<\/span>/g;
let r;
while ((r = x.exec(text)) !== null) {
r[1] && collaboratorsUsernames.push(r[1].trim().toLowerCase());
$invocation = (Get-Variable MyInvocation).Value
cd (Split-Path $invocation.MyCommand.Path)
if ($Args[0] -eq "help") { return help }
if ($Args[0] -eq "--help") { return help }
if ($Args[0] -eq "-help") { return help }
if ($Args[0] -eq "/help") { return help }
if ($Args[0] -eq "?") { return help }
if ($Args[0] -eq "-?") { return help }
if ($Args[0] -eq "--?") { return help }
/******************************************************************************/
'use strict';
/******************************************************************************/
const { strictEqual } = require('assert');
const { execSync } = require('child_process');
const { openSync, chmodSync, fchmodSync, fstatSync } = require('fs');
/******************************************************************************/
const RO = 0o100444; // 33060 0b1000000100100100
const RW = 0o100666; // 33206 0b1000000110110110