Skip to content

Instantly share code, notes, and snippets.


Matthew Swasey mig

  • LivingSocial
  • Washington DC
View GitHub Profile
mig /
Created Jul 10, 2013
Reset Gnome 3 config to default
rm -rf .gnome .gnome2 .gconf .gconfd .metacity .cache .dbus .dmrc .mission-control .thumbnails ~/.config/dconf/user ~.compiz*
mig / crosh-prefs.js
Last active May 31, 2017
crosh prefs
View crosh-prefs.js
// from;a=blob;f=chromeapps/hterm/doc/faq.txt
// and;a=blob;f=chromeapps/hterm/js/hterm_preference_manager.js
term_.prefs_.set('audible-bell-sound', '');
term_.prefs_.set('font-size', 17);
term_.prefs_.set('font-smoothing', 'subpixel-antialias');
var fonts=term_.prefs_.get('font-family');
term_.prefs_.set('font-family', '"Droid Sans Mono", '.concat(fonts));
term_.prefs_.set('cursor-blink', true);
term_.prefs_.set('environment', {TERM: 'xterm-256color'});

Keybase proof

I hereby claim:

  • I am mig on github.
  • I am mswasey ( on keybase.
  • I have a public key ASC48-Jep3Y05Cl3dKUxgu9lCfcYeMDFE1mSH_pXiowp4Ao

To claim this, I am signing this object:

mig / 0_reuse_code.js
Created Jan 14, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
mig /
Created Jul 10, 2013
Notes on recovering my arch install
cryptsetup luksOpen /dev/sda3 root
mount /dev/mapper/root /mnt
mount /dev/sda1 /mnt/boot/efi
efibootmgr -c -w -d /dev/sda -p Y -l '\EFI\gummiboot\gummiboot.efi' -L "Gummiboot"
View 1.9.3-p448
build_package_with_readline_and_openssl () {
local package_name="$1"
./configure --prefix="$PREFIX_PATH" --with-opt-dir="$PREFIX_PATH:`brew --prefix readline`:`brew --prefix openssl`" $CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
install_package "yaml-0.1.4" ""
View 1.9.3-dtrace
install_package "yaml-0.1.4" ""
install_git "1.9.3-dtrace" "" "1.9.3-dtrace" autoconf standard

Ruby 1.9.3-p194 with DTrace probes, Perf Patches, and backported COW-friendly GC


This script installs a patched version of ruby 1.9.3-p194 with DTrace probes, boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Many thanks to funny-falcon for the performance patches and to Aaron Patterson for the DTrace instrumentation.

mig / init.el
Created Jan 18, 2011
Simple Emacs 24 configuration for Rails development
View init.el
;; emacs configuration
(push "/usr/local/bin" exec-path)
(add-to-list 'load-path "~/.emacs.d")
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
(setq inhibit-startup-message t)
View spellcheck.rb
# encoding: UTF-8
# Spell check plugin for earthquake.gem
# written by Smile @rT,,
# 1. Resolve dependencies of raspell.gem: