Skip to content

Instantly share code, notes, and snippets.

peterhellberg / graceful.go
Last active Oct 20, 2020
*http.Server in Go 1.8 supports graceful shutdown. This is a small example.
View graceful.go
package main
import (
yossorion /
Last active Apr 20, 2021
What I Wish I'd Known About Equity Before Joining A Unicorn

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

duckworth / alb.sql
Created Dec 20, 2016
AWS ALB Logs Athena RegexSerDe
View alb.sql
type string,
timestamp string,
elb string,
client_ip string,
client_port int,
target_ip string,
target_port int,
request_processing_time double,
target_processing_time double,
zbryikt / index.css
Last active Dec 27, 2015
write svg with jade, sass, livescript!
View index.css
body {
font-family: optima; }
iframe {
border: none; }
.ib {
display: inline-block;
text-align: center;
border: 1px solid #cccccc;
View console.log.vim
" Console log from insert mode; Puts focus inside parentheses
imap cll console.log();<Esc>==f(a
" Console log from visual mode on next line, puts visual selection inside parentheses
vmap cll yocll<Esc>p
" Console log from normal mode, inserted on next line with word your on inside parentheses
nmap cll yiwocll<Esc>p