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

# custom PyCharm Community Edition VM options
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544869?page=1#comment_200744859
-ea
-server
-Xms1g
-Xmx1g
-Xss16m
-XX:PermSize=256m
-XX:MaxPermSize=256m

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@ziyunli
ziyunli / pgcli
Created February 28, 2019 15:23
configs
# vi: ft=dosini
[main]
# Enables context sensitive auto-completion. If this is disabled the all
# possible completions will be listed.
smart_completion = True
# Display the completions in several columns. (More completions will be
# visible.)
wider_completion_menu = False
@ziyunli
ziyunli / rails_webpacker_bootstrap_expose_jquery.md
Created August 28, 2019 04:11 — forked from andyyou/rails_webpacker_bootstrap_expose_jquery.md
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
@ziyunli
ziyunli / index.md
Created October 25, 2019 17:18 — forked from bojand/index.md
gRPC and Load Balancing

Just documenting docs, articles, and discussion related to gRPC and load balancing.

https://github.com/grpc/grpc/blob/master/doc/load-balancing.md

Seems gRPC prefers thin client-side load balancing where a client gets a list of connected clients and a load balancing policy from a "load balancer" and then performs client-side load balancing based on the information. However, this could be useful for traditional load banaling approaches in clound deployments.

https://groups.google.com/forum/#!topic/grpc-io/8s7UHY_Q1po

gRPC "works" in AWS. That is, you can run gRPC services on EC2 nodes and have them connect to other nodes, and everything is fine. If you are using AWS for easy access to hardware then all is fine. What doesn't work is ELB (aka CLB), and ALBs. Neither of these support HTTP/2 (h2c) in a way that gRPC needs.

@ziyunli
ziyunli / clean-git-branches.sh
Created November 21, 2019 16:07
Clean up invalid git branches
#!/bin/sh
# From https://stackoverflow.com/a/28319271
set -e
if [ $# -eq 0 ]; then
dir="."
else
dir="$1"
@ziyunli
ziyunli / dedup.py
Created July 5, 2022 01:28
OneTab Operations
with open('onetab.txt', encoding="utf-8") as f:
with open('dedup.txt', 'w', encoding="utf-8") as out:
links = {}
is_linebreak = False
for line in f:
line = line.strip()
if not line:
if not is_linebreak:
out.write('\n')
is_linebreak = True
https://www.chronophoto.app/web.html | Chronophoto - The Photographical History Game
https://maxbittker.github.io/broider/ | broider
https://www.searchthedeck.com/ | Search The Deck
https://news.ycombinator.com/item?id=34531989 | Ask HN: What have you created that deserves a second chance on HN? | Hacker News
https://www.coursera.org/learn/modernrobotics-course1/supplement/htN7x/welcome-to-the-specialization | Welcome to the Specialization! | Coursera
http://hades.mech.northwestern.edu/index.php/Modern_Robotics | Modern Robotics - Northwestern Mechatronics Wiki
https://pypi.org/project/modern_robotics/ | modern_robotics · PyPI
https://beagleboard.org/blue | BeagleBoard.org - blue
https://odriverobotics.com/ | ODrive
https://datasette.io/examples | Datasette Examples