Skip to content

Instantly share code, notes, and snippets.

View jbergstroem's full-sized avatar

Johan Bergström jbergstroem

View GitHub Profile
* ECMA-402 (Intl) support didn't find ICU in ./deps/icu..
<http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.zip>
Connecting...
Fetch: . 26.4MB total, 0.0MB downloaded
Fetch: : 26.4MB total, 0.0MB downloaded
Fetch: | 26.4MB total, 0.0MB downloaded
Fetch: ' 26.4MB total, 0.0MB downloaded
Fetch: . 26.4MB total, 0.0MB downloaded
Fetch: : 26.4MB total, 0.0MB downloaded
Fetch: | 26.4MB total, 0.0MB downloaded
@jbergstroem
jbergstroem / foo.md
Last active August 29, 2015 14:28
nodejs jenkins/github notifications

To improve visibility of build status from a PR, we can use the github build status api.

A simple request (for our linter) could look like this:

$ curl -X "POST" \
  -H "Authorization: token ${token}" \
  -d '{"state": "pending", "description": "checking lint status", "context": "linter", "target_url": "${jenkins_url}' https://api.github.com/repos/:nodejs/:node/statuses/${commit_sha}

state is then updated [options: pending, success, failure] whether or not

[ 0.000000] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
[ 0.000000] IP: [<ffffffff8132a1ca>] down_write+0xd/0x29
[ 0.000000] PGD 2103cc067 PUD 20eccf067 PMD 0
[ 0.000000] Oops: 0002 [#1] PREEMPT SMP
[ 0.000000] Modules linked in: xt_conntrack ipt_MASQUERADE iptable_nat xt_addrtype iptable_filter br_netfilter bridge stp llc aufs(O) binfmt_misc
[ 0.000000] CPU: 0 PID: 1337 Comm: docker Tainted: G O 4.1.2-gentoo #2
[ 0.000000] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 0.000000] task: ffff88020cc1e4c0 ti: ffff8800da08c000 task.ti: ffff8800da08c000
[ 0.000000] RIP: 0010:[<ffffffff8132a1ca>] [<ffffffff8132a1ca>] down_write+0xd/0x29
[ 0.000000] RSP: 0018:ffff8800da08fd80 EFLAGS: 00010206
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python2_7 )
MY_PV="v${PV}"
MY_P="${PN}-${MY_PV}"
$ emerge -av rrdtool
[ebuild R ] net-analyzer/rrdtool-1.5.3-r1 USE="graph tcpd -dbi -doc -lua -perl -python -rados -rrdcgi -ruby -static-libs -tcl" PYTHON_TARGETS="-python2_7*"
<snip>
* Messages for package net-analyzer/rrdtool-1.5.3-r1:
* No Python implementation selected for the build. Please set
* the PYTHON_TARGETS variable in your make.conf to include one
* of the following values:
[root@sjc1-nodesrc-64 ~/io.js]# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
<snip>
root 66434 4.8 0.1 612256 22632 0 S+J 6:33AM 0:00.17 out/Release/iojs /usr/home/jbergstroem/io.js/test/parallel/test-cluster-worker-wait-server-close.js
root 66432 0.5 0.0 84624 13668 0 S+J 6:33AM 0:00.08 python tools/test.py -p tap parallel/test-cluster-worker-wait-server-close (python2.7)
<snip>
[root@sjc1-nodesrc-64 ~/io.js]# procstat -k 66434
PID TID COMM TDNAME KSTACK
66434 100256 iojs V8 WorkerThread mi_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem_wait __umtx_op_sem_wait amd64_syscall Xfast_syscall
66434 100757 iojs V8 WorkerThread mi_switch sleepq_catch_signals sleepq_wait_sig _sleep umtxq_sleep do_sem_wait __umtx_op_sem_wait amd64_syscall Xfast_syscall
@jbergstroem
jbergstroem / gist:9b9f11f0e43e21cf5cb7
Last active August 29, 2015 14:22
parallel/test-cluster-worker-wait-server-close
[root@sjc1-nodesrc-64 ~/io.js]# LOCALHOST=172.16.31.2 ./iojs test/parallel/test-cluster-worker-wait-server-close.js
master connecting to worker server
master connected to worker server
worker server connection received
worker data received
data recevied from worker server
worker data received
data recevied from worker server
worker disconnected
[root@sjc1-nodesrc-64 ~/io.js]# echo $?
@jbergstroem
jbergstroem / foo.diff
Created June 10, 2015 03:53
libmongoc-1.0 support in collectd 5.5.0
diff --git configure.ac configure.ac
index 87d1502..4e98818 100644
--- configure.ac
+++ configure.ac
@@ -2546,9 +2546,15 @@ AC_ARG_WITH(libmongoc, [AS_HELP_STRING([--with-libmongoc@<:@=PREFIX@:>@], [Path
[
if test "x$withval" = "xyes"
then
- with_libmongoc="yes"
+ with_libmongoc="yes"
@jbergstroem
jbergstroem / collectd.diff
Last active August 29, 2015 14:22
libmongoc-1.0 support in collectd
--- configure.ac 2015-05-27 17:51:35.609705819 +1000
+++ configure.ac.new 2015-06-10 13:20:30.417584160 +1000
@@ -2546,9 +2546,15 @@
[
if test "x$withval" = "xyes"
then
- with_libmongoc="yes"
+ with_libmongoc="yes"
+ if test "x$PKG_CONFIG" != "x"
+ then
@jbergstroem
jbergstroem / foo.md
Last active August 29, 2015 14:21
io.js state of build flakiness