- I am a thoughtful generalist engineer.
- I value simplicity and elegance in architecture, operations, and experiences.
- I believe that the most effective teams have cultures of sustainability, respect, and trust.
- I love a quick and dirty prototype, but I believe that production software is a long game.
- I'm great at spotting architectural concerns and potential pain points in code and systems.
- I think in abstractions easily. I reason with a functional approach by default.
- I'm level-headed from the first minute of an emergency to the eighth hour of debugging a bizarre problem.
- I obsess over the details. I'm great at finding edge cases. I care about style, consistency, and simplicity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tail-all-pods | |
set kubectl $argv[1] | |
set pattern $argv[2] | |
echo "Using $kubectl to tail all pods matching $pattern..." | |
set pods ($kubectl get pods | kng "$pattern") | |
echo "will open panes to tail pods: $pods" | |
if tmux list-windows | grep -q "$pattern" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>net.alloy-d.offlineimap</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import os | |
import slack | |
import sys | |
import time | |
from functools import reduce | |
from datetime import datetime | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -uexo pipefail | |
GNUPGHOME=${GNUPGHOME-"${HOME}/.gnupg"} | |
OPERATION="${1-}" | |
CARD="${2-NFC}" | |
KEYGRIPS="AA834B25B3B0F86AE7D7AD04C17C60EBA883461B 8DF7BE7931EB269AD310EBD70817BA7DC310ABFD 8F001E2055E5D202AB32A7D3216499FF133331AE" | |
KEY_DIR="${GNUPGHOME}/private-keys-v1.d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// an example to create a new mapping `ctrl-y` | |
mapkey('<Ctrl-y>', 'Show me the money', function() { | |
Front.showPopup('a well-known phrase uttered by characters in the 1995 film Jerry Maguire (Escape to close).'); | |
}); | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
map('gt', 'T'); | |
map('F', 'af'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env boot | |
;; vim: ft=clojure | |
(set-env! :dependencies '[[clojure.java-time "0.3.0"] | |
[me.raynes/fs "1.4.6"]]) | |
(require '[clojure.string :as s] | |
'[me.raynes/fs :as fs] | |
'[java-time :as t]) | |
(defn- time-part [name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
globs = [ | |
'src/**/*.js', | |
'src/**/*.less', | |
'test/**/*.js', | |
'test/**/*.json', | |
'*.js' | |
] | |
paths = globs.map{|glob| Dir[glob] }.reduce(:+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'pathname' | |
dir = ENV["DIR"] || "Midterm" | |
images = Pathname.new(dir).children.select do |f| | |
f.basename.to_s.match(/\A\d+\.(jpg|png)\z/) | |
end.shuffle | |
while !images.empty? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pp' | |
theme = File.read("molokai.vim") | |
colors = theme.scan(/(#[a-f0-9]{6})/i).to_a.flatten.uniq | |
pp colors | |
File.open("colors.html", "w") do |f| | |
f.write <<-EOF |
NewerOlder