Skip to content

Instantly share code, notes, and snippets.

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

Lined Paper with CSS - Source : http://css3.wikidot.com/blog:lined-paper-with-css
--------------------
Repeating background gradient to give the effect of lines across the paper, and a pseudo element on the left to
give the ruled margin.
.paper {
font: normal 12px/1.5 "Lucida Grande", arial, sans-serif;
width: 300px;
margin: 0 auto 10px;
@bitcity
bitcity / gist:d57440ca4240525439c1
Last active October 4, 2021 06:21
Average frame colors of a movie into a single image
ffmpeg -i <your movie file> -vf scale=1:1 <output folder>/%06d.png
convert +append <output folder>/* out.png
mogrify -scale x50\! out.png
Credit : https://www.reddit.com/r/dataisbeautiful/comments/3rb8zi/the_average_color_of_every_frame_of_a_given_movie/cwmn4q2
@bitcity
bitcity / ratelimit.nginxconf
Last active August 29, 2015 14:26 — forked from ipmb/ratelimit.nginxconf
Nginx reverse proxy with rate limiting
upstream myapp {
server 127.0.0.1:8081;
}
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s;
server {
listen 443 ssl spdy;
server_name _;
@bitcity
bitcity / bash_prompt.sh
Last active August 29, 2015 14:21 — forked from insin/bash_prompt.sh
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current mercurial repository
# * the return value of the previous command
#
# USAGE: