Skip to content

Instantly share code, notes, and snippets.

View jbergstroem's full-sized avatar

Johan Bergström jbergstroem

View GitHub Profile
@jbergstroem
jbergstroem / a.diff
Created June 24, 2014 00:45
update gypfile to build the libgit2 v0.21.0 tag
diff --git binding.gyp binding.gyp
index ec60178..9643e83 100644
--- binding.gyp
+++ binding.gyp
@@ -42,203 +42,21 @@
'zlib',
'http_parser',
],
+ 'include_dirs': [
+ 'deps/libgit2/src',
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
DESCRIPTION="A BSON utility library"
HOMEPAGE="https://github.com/mongodb/libbson"
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# TODO: wait for https://github.com/mongodb/mongo-c-driver/issues/54 to land,
# as well as feedback re https://github.com/mongodb/mongo-c-driver/commit/889179ed805b2fd36a149742e2cc57729565ebd5
EAPI=5
inherit eutils
@jbergstroem
jbergstroem / foo.diff
Created July 17, 2014 01:22
mongodb init script
--- /usr/portage/dev-db/mongodb/files/mongodb.initd-r2 2014-05-26 18:31:08.000000000 +1000
+++ /etc/init.d/mongodb 2014-07-17 11:21:37.693253227 +1000
@@ -12,7 +12,7 @@
pidfile=${run_dir}/${SVCNAME}.pid
user=${user:-mongodb}
group=${group:-mongodb}
-start_stop_daemon_args="--user ${user} --group ${group}"
+start_stop_daemon_args="--user ${user} --group ${group} --wait 2000"
depend() {
@jbergstroem
jbergstroem / changes.diff
Last active August 29, 2015 14:04
nodejs-revbump
--- /usr/portage/net-libs/nodejs/nodejs-0.10.29.ebuild 2014-06-12 19:36:25.000000000 +1000
+++ nodejs-0.10.29.ebuild 2014-07-22 11:23:58.319505626 +1000
@@ -9,7 +9,7 @@
PYTHON_COMPAT=( python2_{6,7} )
-inherit python-any-r1 pax-utils
+inherit python-any-r1 pax-utils toolchain-funcs
DESCRIPTION="Evented IO for V8 Javascript"
@jbergstroem
jbergstroem / foo.diff
Last active August 29, 2015 14:04
nodejs 0.11 shared bump
--- /usr/portage/net-libs/nodejs/nodejs-0.11.13.ebuild 2014-05-09 13:42:10.000000000 +1000
+++ nodejs-0.11.13.ebuild 2014-07-22 11:43:13.273029146 +1000
@@ -9,7 +9,7 @@
PYTHON_COMPAT=( python2_{6,7} )
-inherit python-any-r1 pax-utils
+inherit python-any-r1 pax-utils toolchain-funcs
DESCRIPTION="Evented IO for V8 Javascript"
@jbergstroem
jbergstroem / foo.diff
Created July 31, 2014 01:04
leveldb-1.15.0-r1 -> leveldb-1.17.ebuild
# diff -u /usr/portage/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild leveldb-1.17.ebuild
--- /usr/portage/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild 2014-07-30 01:52:40.000000000 +1000
+++ leveldb-1.17.ebuild 2014-07-31 11:03:58.507212473 +1000
@@ -2,13 +2,13 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/leveldb/leveldb-1.15.0-r1.ebuild,v 1.1 2014/07/29 15:52:40 blueness Exp $
-EAPI=4
+EAPI=5
@jbergstroem
jbergstroem / gist:56564d74ff90797bdc8c
Created August 1, 2014 22:59
strace -f output of node test/simple/test-net-server-address.js
execve("/usr/bin/node", ["node", "test/simple/test-net-server-addr"...], [/* 39 vars */]) = 0
brk(0) = 0xd32000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9c9354c000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=45279, ...}) = 0
mmap(NULL, 45279, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9c93540000
close(3) = 0
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 (\0\0\0\0\0\0"..., 832) = 832
@jbergstroem
jbergstroem / kernel.conf.ini
Created August 1, 2014 23:01
kernel config for a vmware fusion image (3.15.6)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.15.6-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@jbergstroem
jbergstroem / gist:c3c5b7f376e97bf3d2be
Created August 2, 2014 10:01
strace of test/simple/test-process-active-wraps.js
execve("./node", ["./node", "test/simple/test-process-active-"...], [/* 39 vars */]) = 0
brk(0) = 0xf1a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f44bd334000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=45370, ...}) = 0
mmap(NULL, 45370, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f44bd328000
close(3) = 0
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 (\0\0\0\0\0\0"..., 832) = 832