Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Mike Steder steder

I may be slow to respond.
Block or report user

Report or block steder

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
steder /
Created Sep 9, 2017
Quickly jump to $GOPATH/src directory
#!/usr/bin/env bash
# Just include this function in your ~/.bashrc
function gof {
if (( $# == 0 )); then
echo "usage: $gof <dir>"
echo "jumps to $GOPATH/src directory matching <dir>"
View geoip_trace.txt
execve("/usr/bin/python", ["python", ""], [/* 30 vars */]) = 0
brk(0) = 0x1a2e000
access("/etc/", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1412ad000
access("/etc/", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36559, ...}) = 0
mmap(NULL, 36559, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb1412a4000
close(3) = 0
access("/etc/", F_OK) = -1 ENOENT (No such file or directory)
import time
from boto.ec2.autoscale import AutoScaleConnection
def find_unused_launch_configs():
conn = AutoScaleConnection()
autoscale_groups = conn.get_all_groups(max_records=100)
launch_configs = conn.get_all_launch_configurations(max_records=100)
launch_config_names = { for lc in launch_configs}
steder / sql example
Created Apr 21, 2014
ipython examples
View sql example
# coding: utf-8
# # this is an ipython notebook
# This is a markdown block that I can use to describe whatever I want to talk about.
# In[1]:
POSTGRES_URI = "postgresql+psycopg2://localhost:5432/steder"
steder / phantom-designs.js
Created Apr 3, 2014
Download and save the generated markup
View phantom-designs.js
Download and
save the generated markup.
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.

Keybase proof

I hereby claim:

  • I am steder on github.
  • I am steder ( on keybase.
  • I have a public key whose fingerprint is 98B7 F879 6032 96D7 9AA8 3FAE 2D8A 2327 04C0 02A2

To claim this, I am signing this object:

View import.rb
require 'rubygems'
require 'nokogiri'
require 'fileutils'
require 'date'
require 'uri'
# usage: ruby import.rb my-blog.xml
# my-blog.xml is a file from Settings -> Basic -> Export in blogger.
data = ARGV[0]
steder / starcraft.el
Created Mar 7, 2012
Starcraft Minor Mode for Emacs
View starcraft.el
;; -*- coding: utf-8 -*-
;; starcraft.el -- track user APM (actions per minute) while using Emacs
;; Copyright 2010 by Michael Steder
;; Author: Michael Steder (
;; Created: 2010
;; Version: 1.0
;; Keywords: Actions per minute
;; Inspired by a love of Starcraft and someones offhand comment
steder /
Created Jan 21, 2012
Words Blog Post Snippets
import itertools
class Dictionary(object):
def __init__(self):
self.words = {}
def insert(self, word):
letters = "".join(sorted(word))
if letters not in self.words:
self.words[letters] = [word]
steder /
Created Dec 19, 2011
Create and update AWS security groups using Python and Boto.
#!/usr/bin/env python
Recipe for creating and updating security groups programmatically.
import collections
import boto
You can’t perform that action at this time.