Skip to content

Instantly share code, notes, and snippets.

View jbergstroem's full-sized avatar

Johan Bergström jbergstroem

View GitHub Profile
@jbergstroem
jbergstroem / gist:7554136
Created November 19, 2013 23:00
Traceroute to DNS Made Easy
jbergstroem@ml ~> mtr --no-dns --report ns0.dnsmadeeasy.com --report-cycles=30
Start: Wed Nov 20 09:59:29 2013
HOST: ml.local Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.0.1.1 0.0% 30 0.2 0.2 0.2 0.3 0.0
2.|-- 203.134.4.50 0.0% 30 6.8 13.7 6.2 79.3 14.2
3.|-- 203.134.72.49 0.0% 30 6.8 15.9 6.6 63.7 11.5
4.|-- 203.134.72.37 0.0% 30 11.5 12.6 6.6 41.2 7.8
5.|-- 203.134.2.14 0.0% 30 7.3 16.6 6.8 53.5 11.4
6.|-- 203.134.2.234 0.0% 30 15.7 16.2 6.5 52.5 11.7
7.|-- ??? 100.0 30 0.0 0.0 0.0 0.0 0.0
@jbergstroem
jbergstroem / gist:7921132
Created December 12, 2013 00:22
dmesg from 3.12.1 at gentoo
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.1-gentoo (root@svetlana) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) ) #1 SMP Sun Nov 24 22:51:37 EST 2013
[ 0.000000] Disabled fast string operations
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009bbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009bc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fffcfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003fffd000-0x000000003fffffff] reserved
# zpool list -v
NAME SIZE ALLOC FREE EXPANDSZ CAP DEDUP HEALTH ALTROOT
zones 1.36T 1.23T 134G - 90% 1.00x ONLINE -
raidz2 1.36T 1.23T 134G -
c1t1d0 - - - -
c1t3d0 - - - -
c1t4d0 - - - -
cache - - - - - -
c1t0d0 55.9G 11.3M 55.9G -
jbergstroem@ml ~> mtr --report --report-cycles=20 mirror.internode.on.net
Start: Mon Feb 24 18:09:11 2014
HOST: ml.local Loss% Snt Last Avg Best Wrst StDev
1.|-- upstairs 0.0% 20 0.2 0.2 0.2 0.3 0.0
2.|-- lns02.sydnmtc.syd.iprimus 0.0% 20 60.9 75.9 11.0 328.4 88.1
3.|-- 49.72-134-203.static.sydn 0.0% 20 21.8 57.3 8.0 249.0 76.6
4.|-- xe-0-2-0.csr01.sydnmtc.ip 0.0% 20 7.7 51.8 7.7 269.7 76.9
5.|-- ae3.csr01.masceqx.nsw.ipr 0.0% 20 10.1 45.6 8.1 258.4 70.7
6.|-- xe-0-3-0.bsr01.equ.iprimu 0.0% 20 158.8 85.0 15.9 283.7 81.1
7.|-- as4739.sydney.pipenetwork 5.0% 20 78.9 73.1 10.0 279.7 68.8
@jbergstroem
jbergstroem / pgmemcache-2.1.2.ebuild
Last active August 29, 2015 13:56
pgmemcache bump
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="A PostgreSQL API based on libmemcached to interface with memcached"
HOMEPAGE="http://pgfoundry.org/projects/pgmemcache https://github.com/ohmu/pgmemcache"
SRC_URI="https://github.com/ohmu/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
@jbergstroem
jbergstroem / test83.diff
Created February 26, 2014 00:54
uthash 1.9.8 failed test83
--- test83.out 2014-02-26 11:49:14.913707575 +1100
+++ test83.ans 2013-03-18 08:19:48.000000000 +1100
@@ -1,51 +1,51 @@
-items in hash: 1, overhead: 632
-items in hash: 2, overhead: 688
-items in hash: 3, overhead: 744
-items in hash: 4, overhead: 800
-items in hash: 5, overhead: 856
-items in hash: 6, overhead: 912
-items in hash: 7, overhead: 968
@jbergstroem
jbergstroem / test84.diff
Created February 26, 2014 00:54
uthash 1.9.8 test84
--- test84.out 2014-02-26 11:49:14.916707622 +1100
+++ test84.ans 2013-03-18 08:19:48.000000000 +1100
@@ -1,51 +1,51 @@
-items in hash: 1, overhead: 8840
-items in hash: 2, overhead: 8896
-items in hash: 3, overhead: 8952
-items in hash: 4, overhead: 9008
-items in hash: 5, overhead: 9064
-items in hash: 6, overhead: 9120
-items in hash: 7, overhead: 9176

Keybase proof

I hereby claim:

  • I am jbergstroem on github.
  • I am jbergstroem (https://keybase.io/jbergstroem) on keybase.
  • I have a public key whose fingerprint is 4A28 8713 A005 BC96 6D86 A9FB 5C01 9DCE F6C0 D87A

To claim this, I am signing this object:

@jbergstroem
jbergstroem / gist:9270454
Created February 28, 2014 12:45
openssl s_client -showcerts -connect registry.npmjs.org:443
me ~> openssl s_client -showcerts -connect registry.npmjs.org:443
CONNECTED(00000003)
depth=1 /C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/C=US/ST=CA/L=San Francisco/O=Joyent, Inc./CN=nodejs.org
i:/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2
-----BEGIN CERTIFICATE-----
@jbergstroem
jbergstroem / patch.diff
Last active August 29, 2015 13:57
nginx-1.5.10.ebuild -> nginx-1.5.11.ebuild
--- nginx-1.5.10.ebuild 2014-02-10 14:12:24.000000000 +1100
+++ nginx-1.5.11.ebuild 2014-03-06 19:28:27.534442626 +1100
@@ -78,13 +78,13 @@
HTTP_METRICS_MODULE_WD="${WORKDIR}/ngx_metrics-${HTTP_METRICS_MODULE_PV}"
# naxsi-core (https://github.com/nbs-system/naxsi, GPLv2+)
-HTTP_NAXSI_MODULE_PV="0.53-1"
+HTTP_NAXSI_MODULE_PV="0.53-2"
HTTP_NAXSI_MODULE_P="ngx_http_naxsi-${HTTP_NAXSI_MODULE_PV}"
HTTP_NAXSI_MODULE_URI="https://github.com/nbs-system/naxsi/archive/${HTTP_NAXSI_MODULE_PV}.tar.gz"