Skip to content

Instantly share code, notes, and snippets.

View GeoffTidey's full-sized avatar
🖖
live long and prosper

Geoff Tidey GeoffTidey

🖖
live long and prosper
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

#!/usr/bin/env ruby
require 'net/telnet'
# https://gist.github.com/bkimble/1365005
class MemcachedKeys
def process!
cache_dump_limit = 100000000
localhost = Net::Telnet::new("Host" => "localhost", "Port" => 11211, "Timeout" => 3)
slab_ids = []
@GeoffTidey
GeoffTidey / gist:5760330
Last active December 18, 2015 09:19
List of some of my favourite gems.

Development

jazz_hands

jazz_hands is an opinionated set of console-related gems and a bit of glue. Including Pry, an awesome REPL, & some of it's friends. Pry is is a powerful alternative to the standard IRB shell for Ruby. It features syntax highlighting, a flexible plugin architecture, runtime invocation and source and documentation browsing. It also includes awesome_print.

https://github.com/nixme/jazz_hands

http://pryrepl.org/

@GeoffTidey
GeoffTidey / imsparticus.rb
Created August 3, 2012 00:29
A script to retrieve all of the ticket events & prices for the London Olympics 2012
#!/usr/bin/env ruby
#very much a WIP!
#attempting to get all available events & relevant prices!
require 'rubygems'
require 'mechanize'
a = Mechanize.new { |agent|
agent.user_agent_alias = 'Windows IE 8'
@GeoffTidey
GeoffTidey / shrd.rb
Created July 31, 2012 17:19
A ruby interpretation of the shrd (Double Precision Shift Right) Assembly instruction
#see https://en.wikibooks.org/wiki/X86_Assembly/Shift_and_Rotate#Extended_Shift_Instructions for more info on shrd
def shrd(rm16, r16, cl)
rm16 >>= cl
r16 <<= (16 - cl)
rm16 | (r16 & 0xFFFF)
end
@GeoffTidey
GeoffTidey / trans_dec_hex.rb
Created May 30, 2012 13:22
translate captured decimal bytes to hex to copy into hex fiend
[8, 0, 227, 1, 108, 2, 0, 121, 95].map { |b| "#{b.to_s(16).rjust(2, "0")} " }.join
@GeoffTidey
GeoffTidey / kidsruby_installer.sh
Created March 12, 2012 00:01 — forked from patrickgombert/kidsruby_installer.sh
Kids Ruby Ubuntu Installer
#!/bin/bash
echo "Installing Kids Ruby!"
sudo apt-get install git
# rbenv
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo `export PATH="$HOME/.rbenv/bin:$PATH"` >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
def output name=((default=true); "caius")
puts "name: #{name.inspect}"
puts "default: #{default.inspect}"
end
output
# >> name: "caius"
# >> default: true
output "avdi"