I hereby claim:
- I am indradhanush on github.
- I am indradhanush (https://keybase.io/indradhanush) on keybase.
- I have a public key ASCrADGNepl1q3bvGdu8se73WTMMBaxddyPS8Ej7nJ-9EQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
If you are getting this in gdb on OSX while trying to run a program:
Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
gdbc
)Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#!/bin/bash | |
# | |
# This script rotates your aws access keys by creating | |
# a new one and deleting the older one. | |
# Requirements | |
# You must have a working aws cli configured already | |
# Run `aws configure` otherwise first before running this script. | |
# Installation & Usage |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
// Run 1 | |
dhanush@Indradhanushs-MacBook-Pro:~/golang/src/github.com/zeromq/gogozmq$ go test -v -run TestPullSockSingleConnection | |
=== RUN TestPullSockSingleConnection | |
got incoming &{{0xc8200bc000}} | |
--- PASS: TestPullSockSingleConnection (0.00s) | |
sock_test.go:46: new pull | |
sock_test.go:54: new push | |
sock_test.go:60: push hello | |
read bytes: 7 | |
PASS |
type Conn interface { | |
net.Conn | |
Connect(endpoint string) error | |
CurrentIdx() int | |
Serve() error | |
handleConnection(conn net.Conn) error | |
} | |
type Sock struct { | |
conns []net.Conn |
From 8ab91751069e391a95151c6716a546b1732ade92 Mon Sep 17 00:00:00 2001 | |
From: JP <twitter:canoeberry> | |
Date: Sun, 19 Jan 2014 11:58:54 +0000 | |
Subject: [PATCH] partial memleak fix | |
This patch was created by JP (twitter: @canoeberry) based on a memleak fix by Dirk (emacs committer) below: | |
https://github.com/mirrors/emacs/commit/57ae6509a3b6a274f89b9caea0284c6156470625 | |
This memory leak is fixed in the trunk as of now and will be in the next official release: 24.4. |
Vagrant::Config.run do |config| | |
# ... | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end |
class ZMQSynchronizer(Synchronizer): | |
""" | |
Extends leap.soledad.client.sync.SoledadSynchronizer | |
""" | |
syncing_lock = Lock() | |
def _sync(self, autocreate=False, defer_decryption=True): | |
""" | |
Overrides SoledadSynchronizer._sync | |
""" |