Skip to content

Instantly share code, notes, and snippets.

zmagg zmagg

Block or report user

Report or block zmagg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8a4302cdd696a6d575f1
syntax on
set number
filetype plugin on
set nocompatible
set modelines=0
filetype plugin indent on
syntax on
set expandtab
View gist:2298aa5c25e301b566b1
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# bash history
export HISTSIZE=20000
shopt -s histappend
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
alias gdiff='gist -t diff'
View gist:03bfbe561d48326ffe0b
freud --- civilization and its discontents
freud --- the new introductory lectures on psycho-analysis
lacan --- seminars (choose 2)
( a few other essays, TBD)
View gist:e7307ea2adf6cd510e95

Etsy started with a monolithic Postgres database and moved to a horizontally sharded MySQL store with a lookup table and master-master replication. Scaling your data store is never easy as just adding more hardware though, even with sharding.

In this talk, we'll go over the pains and perils of sharding databases and how we solved some of the problems in Etsy's second take on sharding, what we call logical sharding. Logical sharding is where we put several databases on one mysqld, as opposed to one database per server. Upon hitting a resource limit on a box (CPU, Memory, Connections, etc) that would normally require individual row migration, we can instead do file level migrations of a database, replicate, then drop previous databases, which is super fast and a cleaner way to delete old unnecessary shard data. We'll also go over how logical sharding benefits other daily operational challenges like schema changes and backups, as well as simplies life for developers and makes life easier for downstream data wa

View gist:0f25e57f950dd2963ebd
vegetarian friendly:
BAGELS (fairmount / st viateur)
arepera du plateau (delicious)
bangkok (thai food in a food court) maja knows a thai place that delivers though I think!
burritoville (adorable vegan place with sweet potato burritos and lemonade)
la panthere verte (my favorite falafels in montreal; mostly vegan). several locations.
omnivore (hummus and eggplant dips and tasty salads <3)
ice cream: MuuMuu and kem coba are both excellent.
indian food in park extension (bombay mahal or maison indian curry; they're across the street from each other)
zmagg / gist:133c4febd84dbab394af
Last active Oct 24, 2015
packing list for amsterdam, portugal
View gist:133c4febd84dbab394af
waterproof interior bag (i don't really need it, but maybe someone i'm traveling with will like it? also laundry)
3 t-shirts
3 pairs of underwear (lol)
2 pairs of wool socks
2 pairs of cotton socks
one heavyish wool sweater (purple)
one light merino sweater (black)
one merino liner layer thin long sleeved (black)
zmagg / gist:ea26038d2b1227141bdc
Created Nov 27, 2015
zmagg's carnitas recipe
View gist:ea26038d2b1227141bdc
I sort of cobble together with
Half an orange, juiced.
Orange zest from half an orange.
Lime, cut in halves.
one stick cinnamon, in halves.
teaspoon Arizona Dreaming by Penzeys.
two dried chipotles
teaspoon coriander
View gist:68b1e551a8134967fa35
a few days in ashland watching plays then hiking! maybe around an oregon singing!
zmagg / gist:c514481e0515d1cb70bc
Last active Dec 10, 2015
packing list for sf & nc
View gist:c514481e0515d1cb70bc
in sf for 5 days
in nc for 11 days
outliers, jeans
X pairs of socks
party dress
sports bra
running shoes
socks for running shoes
View gist:e6abf2029a921978a3af
@asiahoe + @amelielamont + @tcburning + @izzyoji + @cattsmall
@argoncobalt + @jaclynejimenez + @JFriedhoff + @carolinesinders!
@Adellelin and @sodevious
@courteneyervin, @saronyitbarek, @cattsmall, & members of @wscnewyorkcity
You can’t perform that action at this time.