Skip to content

Instantly share code, notes, and snippets.

View ewollesen's full-sized avatar

Eric Wollesen ewollesen

  • Salt Lake City, UT
View GitHub Profile
# OLD run_test
def run_test
if @headless
headless = Headless.new
headless.start
end
if @browser == :safari
b = Watir::Safari.new
@ewollesen
ewollesen / decorator_and_strategy.md
Created March 20, 2013 22:35
Talking points for an informal talk given at work.

Decorator

What is it?

Decorator allows you to alter the behavior of a specific object instance. Behavior can be added, changed, or removed.

What's good about it?

  • Doesn't require inheritance (a bonus when working with ActiveRecord).
@ewollesen
ewollesen / EAC_Setup.txt
Created March 25, 2013 19:46
My recommended setup for ripping music for insertion into [Mildred](http://mildred.xmtp.net).
EAC setup 2008-04-14
Notes:
Entries beginning with a * represent prompts answered on the
screen. Entries beginning with a ! represent actions taken
outside of the software world.
Wizard:
@ewollesen
ewollesen / iterator_and_visitor.md
Created March 27, 2013 23:40
Talking points for an informal talk given at work.

Iterator

What is it?

What's good about it?

What's bad about it?

@ewollesen
ewollesen / extract-addon.bat
Created February 25, 2014 03:18
World of Warcraft Add-on Installing Batch File
@echo off
c:
cd "\Users\Public\World of Warcraft\interface\addons"
"C:\Program Files\7-zip\bin\7za.exe" x -y "%1"

Keybase proof

I hereby claim:

  • I am ewollesen on github.
  • I am ewollesen (https://keybase.io/ewollesen) on keybase.
  • I have a public key whose fingerprint is 378D F017 5D64 F25F 86D7 F270 9FE4 DADB 02AB 949F

To claim this, I am signing this object:

Verifying that +ewollesen is my blockchain ID. https://onename.com/ewollesen
@ewollesen
ewollesen / dnsimple-update-ip
Created December 22, 2015 16:56
Script for updating IP and IPv6 addresses with dnsimple.com.
#!/bin/bash
# Pass RECORD_ID_IP or RECORD_ID_IP6 on the command line
# EMAIL and TOKEN can come from ~/.auth/dnsimple.sh or the command line
set -e
#set -x
[ -r ~/.auth/dnsimple.sh ] && . ~/.auth/dnsimple.sh
@ewollesen
ewollesen / i3status-mpd.go
Last active August 14, 2021 20:52
A small go binary for putting MPD status in your i3 statusbar
// Copyright (C) 2018 Eric Wollesen <ericw at xmtp dot net>
// https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6
// $ git clone https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6 $GOPATH/src/$(hostname -s)/i3status-mpd
// $ go install $(hostname -s)/i3status-mpd
package main
import (
"bytes"
@ewollesen
ewollesen / dotfiles-setup
Last active April 5, 2018 15:14
Clone my dotfiles setup
set -e
[ -d ~/.dotfiles ] && mv ~/.dotfiles{,-pre-git}
function config {
/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
}
alias config='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree=$HOME'
git clone --bare git@pain.xmtp.net:df.git "$HOME/.dotfiles"