Skip to content

Instantly share code, notes, and snippets.

@zmagg
zmagg / gist:68b1e551a8134967fa35
Created December 2, 2015 18:55
vacation ideas
a few days in ashland watching plays then hiking! maybe around an oregon singing!
@zmagg
zmagg / gist:c514481e0515d1cb70bc
Last active December 10, 2015 00:08
packing list for sf & nc
in sf for 5 days
in nc for 11 days
outliers, jeans
X pairs of socks
party dress
tights
sports bra
running shoes
socks for running shoes
@asiahoe + @amelielamont + @tcburning + @izzyoji + @cattsmall
@argoncobalt + @jaclynejimenez + @JFriedhoff + @carolinesinders!
@Adellelin and @sodevious
@courteneyervin, @saronyitbarek, @cattsmall, & members of @wscnewyorkcity
@snarkbat
@dtwps
@brindelle
@Murielleu
@marycutrali!
@mellowbeing
@zmagg
zmagg / gist:f82ed07c119ce5b09e86
Created December 19, 2015 05:08
kindle books i read this year
"Broken Angels (Takeshi Kovacs, #2)",Richard K. Morgan
"Woken Furies (Takeshi Kovacs, #3)",Richard K. Morgan
Thus Was Adonis Murdered,Sarah Caudwell,"Caudwell
"The Steel Remains (A Land Fit for Heroes, #1)",Richard K. Morgan
Collected Poems,Philip Larkin,"Larkin
"Shards of Honour (Vorkosigan Saga, #1)",Lois McMaster Bujold
"The Warrior's Apprentice (Vorkosigan Saga, #2)",Lois McMaster Bujold
"Barrayar (Vorkosigan Saga, #7)",Lois McMaster Bujold
"The Vor Game (Vorkosigan Saga, #6)",Lois McMaster Bujold
Cetaganda (Vorkosigan Saga),Lois McMaster Bujold,"Bujold
@zmagg
zmagg / 0201.md
Last active February 11, 2016 17:27
food diary, february. eating vegan, started february 2nd.
  • 1 egg, scrambled
  • 2 tomatoes fried lightly in a cast iron, with vinegar, and some chard & broccolini pieces
  • 1 white bass fish fillet (1/4 fish), panfried with panko bread coating
  • 9 oysters: fanny bay, kushu, kunamato (bc when possible, wa otherwise)
  • 1/4 lb of shrimp in butter and garlic, serious eats style
  • 1 espresso, 1 coffee
  • handful of dried cherries
  • half a backlava
  • half a pastel de nata
  • quarter bottle unoaked chardonnay
@zmagg
zmagg / gist:b87db1437324c3c78757
Created February 23, 2016 00:54
download the tarheeltimes
for i in {1990..2016}
> do
> wget "http://www.tarheeltimes.com/schedulebasketball-$i.aspx"
> done
@zmagg
zmagg / flights.md
Last active May 1, 2017 20:07
Lessons learned from hard years of being late to the airport and flying too much

Lessons learned from hard years of being late to the airport and flying too much

Late to the airport

Okay, if you're late to the airport, you might not be late to your flight. Maximize your chances of making your flight, even if you're late to the airport.

Step 1, knowledge:

  • Most domestic flights require 30 minute before your flight takes off check-in time. SFO, JFK, and other major airports have upped this to 45 minutes. Play it safe. Check in on your phone in transit to the airport, even if you plan on using the kiosk to get a piece of paper for whatever reason.
  • Gates close 15 minutes prior to departure for domestic flights.
@zmagg
zmagg / ahi.md
Last active November 16, 2019 08:24
adaptive hash index in mysql

omg julia,

Today I learned something about the buffer pool in MySQL that made it seem less like performance black magic! So, before today I knew that the buffer pool was an in-memory cache for MySQL that let you do super fast lookups (especially PK lookups, but maybe only PK lookups (? uncertain on that one)), like, our PK lookups with the BP turned on take microseconds, and they did so even before we moved to SSDs for all our databases [1]. I didn't know ANYTHING about how the buffer pool worked though, other than like, "caching: it makes things faster".

So, today we were doing a routine schema change truncating some old tables. We did a TRUNCATE operations live with all the databases still in configuration serving live traffic [2], because a TRUNCATE essentially does a DROP/CREATE at the table level, instead of row by row (since MySQL 5.1, we're on 5.5), so it's usually reasonably high performance. TURNS OUT, it also does some really not-so-performant cache invalidation on the buffer pool! This

@zmagg
zmagg / leaving.md
Last active May 5, 2016 08:30
strategies i've used to leave projects without quitting

I consider myself reasonably OK at leaving projects without quitting, at Etsy. That's an important qualifier, as Etsy as an organization is very comfortable with diving deep to understand code and systems and co-debugging and generally what Julia would call, "becoming wizards together". Because of that, I've not found a lot of organizational pressure to stay on a project as the solo expert when you're ready to leave.

Some strategies I've used that have worked to wrap up work on a project and move onto a new one.

  • Go on a vacation. One week is frequently sufficient. Create the bus factor for yourself. Observe the things you do leading up to being gone for a week: probably you're meeting with coworkers to sync knowledge, or writing more documentation, or possibly even presenting exceptionally gnarly part of the system that you worked on. You can preemptively do these things even if you don't go on vacation, but I find being entirely disconnected an important part of demonstrating your trust in other peo
@zmagg
zmagg / coursework
Last active May 2, 2016 19:49
What coursework have I taken?
Foundations of Programming
Multivariable Calculus
Data Structures
DiffEQ
Algorithms & Analysis
Discrete Math
Linear Algebra
Computer Organization (hardware class)
Operating Systems