Skip to content

Instantly share code, notes, and snippets.

View codenameyau's full-sized avatar

Jorge Yau codenameyau

View GitHub Profile
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active April 15, 2025 22:49
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

@codenameyau
codenameyau / console-tricks.js
Last active April 6, 2022 13:07
Javascript Snippets
/************************************************************************
* CLIENT ONE-LINERS
*************************************************************************/
// Set top level domain cookie.
document.cookie = "token=12345; Max-Age=120; Secure; Domain=mozilla.org; Path=/;"
// Set a subdomain cookie.
document.cookie = "name=hello world; Max-Age=120; Secure; Domain=developer.mozilla.org; Path=/;"
@codenameyau
codenameyau / linux-cheatsheet.sh
Last active January 6, 2024 21:56
Bash Cheatsheet
# Check which process is using a port.
lsof -i tcp:57454
# Bash scrict mode.
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Exit script if you try to use an uninitialized variable.
@codenameyau
codenameyau / receipe.scss
Last active January 25, 2018 21:03
CSS Recipe Book
// Fix pixelated images and svg by removing this line.
svg,
img {
image-rendering: -webkit-optimize-contrast;
}
// Spinning React logo
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;