Skip to content

Instantly share code, notes, and snippets.

General key themes:

  • Hiring is really hard. You’re not just hiring a “Rails Engineer” or a “Python Programmer” you’re hiring someone who can help you change the world. Tell them why! Talk about the hard problems you’re solving. 2/3 of these talks give ideas and insight into hiring from sourcing to actual interview processes.

  • Rewriting systems is hard. People think they are going to replace their broken down horse and buggie with a bullet train and this often ends up in disaster. Successful rewrites require an incremental approach that takes months/years and often runs way over schedule. 2/3 of these talks go over how to handle rewrites not only from a high level technical perspective but a cultural/management perspective as well.

Two Developers, Many Lines of Code, and A Campaign that Made History

Harper Reed (CTO of Obama for America, now CEO of Modest) and Dylan Richard (Director of Eng of Obama for America, now CTO of Modest)

@codeslinger
codeslinger / compile.txt
Last active August 29, 2015 14:10
Multiple consumers each consuming all of the queue items
Compile with: gcc -g -std=c99 -Wall -Werror test-vrt-mc.c -o test-vrt-mc -lvrt -lcork -lpthread
/**
* GOZORK Text Adventure Game
* by apoc <http://apoc.cc>
*
* Inspired by the infamous beginning of Zork I.
* Reading the source will obviously spoil the game.
* The goal is to somehow kill the troll.
* Oh yeah and: This is my first GO program! Which would be
* my perfect excuse for the bad code quality1!
* Here is a solution/transcript:
#!/bin/bash
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname
INFLUXDB_DATABASE=test1
INFLUXDB_PKG=influxdb_latest_amd64.deb
INFLUXDB_URL=http://s3.amazonaws.com/influxdb/$INFLUXDB_PKG
GRAFANA_VER=grafana-1.5.4
GRAFANA_PKG=$GRAFANA_VER.tar.gz
GRAFANA_URL=http://grafanarel.s3.amazonaws.com/$GRAFANA_PKG
GRAFANA_CONFIG_GIST=https://gist.githubusercontent.com/otoolep/c58991dec54711026b77/raw/c5af837b93032d5b929fef0ea0b262648ddd4b7f/gistfile1.js
/* showif.c : PUBLIC DOMAIN - Jon Mayo - August 22, 2006
* - You may remove any comments you wish, modify this code any way you wish,
* and distribute any way you wish.*/
/* finds all network interfaces and shows a little information about them.
* some operating systems list interfaces multiple times because of different
* flags, modes, etc. if you want to use this code you should be aware that
* duplicate interfaces is a possibility */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#!/usr/bin/env bash
# HubCrypt
# ========
#
# Decrypt a file encrypted using hubencrypt (ok, it's just openssl + rsautl +
# your SSH keys). It needs the private key that matches your last public key
# listed at github.com/<user>.keys
#
@codeslinger
codeslinger / test.go
Last active August 29, 2015 14:00 — forked from aaronfeng/test.go
package main
import (
"fmt"
"net"
"bufio"
"io"
"os"
"time"
)
@codeslinger
codeslinger / gist:6390932
Created August 30, 2013 15:18
Makefile for Go projects
# vim:set ts=8 ai:
GOPATH := $(shell pwd)
BASE := github.com/me/myproject
TARGETS := target1 target2 target3
PACKAGES := util1 util2 target1 target2 target3
GOTESTOPTS := -v
GOGETOPTS := -v
all: compile
@codeslinger
codeslinger / gist:5100109
Last active December 14, 2015 14:19
x.js
/*
* items -- array of objects with a 'location' field
* userPrefs -- array of user-specified location labels, in user-specified order
*/
function sortByLocation(items, userPrefs) {
return sortBy(items, userPrefs, 'location');
}
function sortBy(items, userPrefs, column) {
items.sort(function(a,b) {
@codeslinger
codeslinger / recipe.rb
Created June 29, 2012 20:15 — forked from peplin/recipe.rb
S3 File Resource for Chef
# Source accepts the protocol s3:// with the host as the bucket
# access_key_id and secret_access_key are just that
s3_file "/var/bulk/the_file.tar.gz" do
source "s3://your.bucket/the_file.tar.gz"
access_key_id your_key
secret_access_key your_secret
owner "root"
group "root"
mode 0644
end