Skip to content

Instantly share code, notes, and snippets.

View bhgraham's full-sized avatar

Benjamin H. Graham bhgraham

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

@bhgraham
bhgraham / 0_reuse_code.js
Created August 17, 2014 03:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bhgraham
bhgraham / gitlab.sh
Last active December 12, 2015 09:39 — forked from cristianrasch/gitlab.sh
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1
ln -s /usr/bin/ruby /usr/local/bin/ruby
ln -s /usr/bin/gem1.9.1 /usr/local/bin/gem
rm /usr/bin/ruby /usr/bin/gem
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
@bhgraham
bhgraham / .gitignore
Last active December 12, 2015 00:48 — forked from karmi/.gitignore
.DS_Store
Gemfile.lock
*.pem
node.json
tmp/*
!tmp/.gitignore
<?php
/**
* This is just a quick hack to get the data directory for a user
*/
// load engine - this assumes the script has been put in the root directory of Elgg
require_once(dirname(__FILE__) . "/engine/start.php");
global $CONFIG;
/**
* Add an item to an Elgg menu
*
* @param string $menu The name of the menu: site, page, userhover, userprofile, groupprofile, or any custom menu
* @param string $id The unique identifier for this menu item. An example is blog:add
* @param string $title The localized title string for this menu item
* @param string $url The URL for this menu item
* @param array $options An associative array of menu options including: tooltip, parent, or custom option.
* tooltip: string that is used as the title element of the link
* parent: the $id of the item's parent