I hereby claim:
- I am es on github.
- I am stolarsky (https://keybase.io/stolarsky) on keybase.
- I have a public key ASC64tyi610WHFxcSo217uABsKWed77Pvhrpr9PB3vVrIgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
events { | |
worker_connections 42; | |
} | |
http { | |
server { | |
listen 8080; | |
header_filter_by_lua_block { | |
ngx.header['X-Epoch'] = ngx.time() |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = 'bento/ubuntu-14.04' | |
config.ssh.forward_agent = true | |
config.vm.provision 'shell', path: 'provision.sh', privileged: false, keep_color: true | |
config.vm.provider 'vmware_fusion' do |v| |
def get_rstring(addr): | |
s = addr.cast(string_t.pointer()) | |
if s['basic']['flags'] & (1 << 13): | |
return s['as']['heap']['ptr'].string() | |
else: | |
return s['as']['ary'].string() | |
def get_lineno(iseq, pos): | |
if pos != 0: | |
pos -= 1 |
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 | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD* 150,000 ns 0.15 ms |
telegraf: | |
image: emil/telegraf | |
volumes: | |
- telegraf.conf:/etc/opt/influxdb/telegraf.conf:ro | |
links: | |
- influxdb | |
influxdb: | |
image: tutum/influxdb | |
ports: |
This is a post by Joel Spolsky. The original post is linked at the bottom.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju
# Ps.all to get an array of hashes | |
# Example hash: | |
# { | |
# :user=>"Username", | |
# :pid=>5321.0, | |
# :cpu=>6.2, | |
# :mem=>0.7, | |
# :vsz=>3438156.0, | |
# :rss=>56568.0, | |
# :tt=>"??", |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns on recent CPU
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 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs 4X memory
# encoding: utf-8 | |
site 'http://community.opscode.com/api/v1' | |
cookbook "apt" | |
cookbook "ruby_build", {:github=>"fnichol/chef-ruby_build", :ref=>"v0.7.2"} | |
cookbook "rbenv", {:github=>"fnichol/chef-rbenv"} | |
cookbook "git", {} | |
cookbook "redis", {:github=>"ctrabold/chef-redis"} | |
cookbook "postgresql", {:github => 'phlipper/chef-postgresql'} |