Skip to content

Instantly share code, notes, and snippets.

View nilnilnil's full-sized avatar
🏠
Working from home

Caine Tighe nilnilnil

🏠
Working from home
View GitHub Profile

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

(08:47 AM nil@caine checkprovider (master)) perl checkprovider -U desktop 'https://duckduckgo.com/?q=border%20collie'
Request Times (ms)
Timestamp DNS Socket Connect TLS Write 1stByte Read Close Total Bytes Status
2016-06-07 08:48:39 EDT 2.98 0.06 1.39 8.83 0.06 30.36 0.07 0.26 44.10 13804 OK (200)
2016-06-07 08:48:40 EDT 0.74 0.08 0.77 6.31 0.07 29.56 0.09 0.34 38.05 13804 OK (200)
2016-06-07 08:48:41 EDT 0.75 0.07 0.49 6.45 0.06 32.85 0.08 0.27 41.10 13804 OK (200)
2016-06-07 08:48:42 EDT 0.72 0.07 1.51 8.24 0.06 22.71 0.08 0.32 33.81 13804 OK (200)
2016-06-07 08:48:43 EDT 0.81 0.07 0.61 6.22 0.06 28.76 7.72 0.32 44.68 13804 OK (200)
2016-06-07 08:48:44 EDT 0.85 0.07 0.45 6.04 0.06 28.51 0.10 0.33 36.5
@nilnilnil
nilnilnil / caps_lock_to_control.reg
Created February 18, 2015 14:11
caps lock to control
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@nilnilnil
nilnilnil / util.bash
Created February 10, 2015 16:40
bash helper functions
# Easily extract all compressed file types
extract () {
if [ -f "$1" ] ; then
case $1 in
*.tar.bz2) tar xvjf -- "$1" ;;
*.tar.gz) tar xvzf -- "$1" ;;
*.bz2) bunzip2 -- "$1" ;;
*.rar) unrar x -- "$1" ;;
*.gz) gunzip -- "$1" ;;
*.tar) tar xvf -- "$1" ;;
@nilnilnil
nilnilnil / nilnilnil_keybase_proof.txt
Created August 26, 2014 14:13
nilnilnil Keybase Proof
### Keybase proof
I hereby claim:
* I am nilnilnil on github.
* I am nilnilnil (https://keybase.io/nilnilnil) on keybase.
* I have a public key whose fingerprint is 8A87 11CF F0D1 324C 2B98 5006 B946 183D 4E42 295D
To claim this, I am signing this object:
@nilnilnil
nilnilnil / nginx_error_ip_squelch.patch
Created August 29, 2013 20:45
redact client ip from nginx error log
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index c8c5d15..a3f1953 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -3472,7 +3472,7 @@ ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len)
ctx = log->data;
- p = ngx_snprintf(buf, len, ", client: %V", &ctx->connection->addr_text);
+ p = ngx_snprintf(buf, len, ", client: REDACTED");
#!/usr/bin/env bash
# Redirect output to stderr.
exec 1>&2
# list staged go files
lsgo() {
git ls-files|egrep '.*.go$'
}
@nilnilnil
nilnilnil / uri.js
Created September 10, 2012 02:36 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@nilnilnil
nilnilnil / validate.go
Created September 6, 2012 23:06 — forked from dustin/validate.go
Concurrent seriesly test
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"sync"
)
@nilnilnil
nilnilnil / latency.txt
Created May 31, 2012 20:47 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns