Skip to content

Instantly share code, notes, and snippets.

@chrisckchang
chrisckchang / currentOp.js
Last active May 4, 2016 04:30
Command for getting current operations on a MongoDB
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
@davecheney
davecheney / gist:6679191
Created September 24, 2013 01:20
go1.1 vs go tip http benchmarks
/home/dfc/devel/autobench/work/go.11/misc/benchcmp /home/dfc/devel/autobench/work/http-11.txt /home/dfc/devel/autobench/work/http-tip.txt
benchmark old ns/op new ns/op delta
BenchmarkHeaderWriteSubset 1455 1119 -23.09%
BenchmarkReadRequestChrome 7697 6959 -9.59%
BenchmarkReadRequestCurl 4065 3573 -12.10%
BenchmarkReadRequestApachebench 4017 3555 -11.50%
BenchmarkReadRequestSiege 5321 4675 -12.14%
BenchmarkReadRequestWrk 2698 2651 -1.74%
BenchmarkClientServer 58534 57838 -1.19%
BenchmarkClientServerParallel4 54188 55070 +1.63%
@marcuswestin
marcuswestin / aws-ssl-termination-digicert.md
Last active August 28, 2018 15:18
How to set up an AWS SSL terminating Elastic Load Balancer with a Digicert certificate

1: Generate CSR

openssl req -new -newkey rsa:2048 -nodes -keyout server-cert.key -out server-cert-sign-req.csr

# Country Name (2 letter code) [AU]:US
# State or Province Name (full name) [Some-State]:California
# Locality Name (eg, city) []:
# Organization Name (eg, company) [Internet Widgits Pty Ltd]:Flutterby Labs, Inc.
# Organizational Unit Name (eg, section) []:
# Common Name (eg, YOUR name) []:www.dogo.co
@mathiasbynens
mathiasbynens / LICENSE.txt
Last active October 5, 2022 10:38 — forked from 140bytes/LICENSE.txt
UTF-8 byte counter in 49 bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathias Bynens <http://mathiasbynens.be/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE