Skip to content

Instantly share code, notes, and snippets.

View ereli's full-sized avatar

Ereli ereli

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

Keybase proof

I hereby claim:

  • I am ereli on github.
  • I am ereli (https://keybase.io/ereli) on keybase.
  • I have a public key whose fingerprint is BC8C DE49 8C6C B593 8825 EFEC 801D 6BA0 3D81 9D46

To claim this, I am signing this object:

@ereli
ereli / graph.json
Created April 18, 2016 13:53 — forked from eyaler/graph.json
Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
{
"graph": [],
"links": [
{"source": 0, "target": 1},
{"source": 0, "target": 2},
{"source": 0, "target": 3},
{"source": 0, "target": 4},
{"source": 0, "target": 5},
{"source": 0, "target": 6},
{"source": 1, "target": 3},
@ereli
ereli / README.md
Last active August 29, 2017 17:46
find printers on the local network

Printer Finder

here's a script to find the local printers on your lan.

Requirements:

@ereli
ereli / gist:a0faf53e417403df8863
Created April 9, 2015 10:15
prevent screensaver and workstation lockout - vbs script that presses the numlock key twice every 10 seconds
# ref: http://superuser.com/a/836346
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
i = 0
Do While i = 0
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (10000)
@ereli
ereli / gist:8ea1892e362fbac92d8c
Last active August 29, 2015 14:18
regain admin access to hue after you've enabled LDAP/AD integration on Hue 2.5 and change group names that cannot be changed in the web UI
sqlite3 /var/lib/hue/desktop.db
UPDATE auth_user SET is_superuser=1 WHERE username='hadoop-user-admin';
UPDATE auth_group SET name='default_group' where id=3;
@ereli
ereli / b
Created March 9, 2015 11:02
How to convert a color pdf into greyscale from the command line
convert -density 600 -colorspace gray input.pdf output_greyscale.pdf
@ereli
ereli / gist:e868fcaeb660e420d7a6
Last active April 3, 2024 10:01
Installing Centos using DHCP, TFTP and Kickstart

Installing Centos using DHCP, TFTP and Kickstart Files.

We want to deploy physical nodes before cluster installation, in order to speed up the deployment, we'd like to automate most of the process, requiring us only to enter hostnames and IP address. we will need:

  • A DHCP Server
  • TFTP Server
  • HTTP Server
  • Centos ISO file
  • Optionally: local repo server, local dns server, local ntp server.
@ereli
ereli / gist:5cc39cff8bbb19b16997
Last active August 29, 2015 14:15
create screetshot from the command-line using Python and Ghost
from ghost import Ghost
from sys import argv
def main():
url = argv[1]
path = argv[2]
screenshot(url,path)
def screenshot(url,path):
ghost = Ghost()
ls *.rpm | \
xargs rpm --query --filesbypkg --package | \
grep configure.py