Skip to content

Instantly share code, notes, and snippets.

View mig's full-sized avatar

Matthew Swasey mig

  • LivingSocial
  • Washington DC
View GitHub Profile
# encoding: UTF-8
# Spell check plugin for earthquake.gem
#
# written by Smile @rT, https://github.com/smileart, smileart@mail.ru
#
# INSTALL:
#
# 1. Resolve dependencies of raspell.gem:
# https://github.com/evan/raspell/blob/master/README.rdoc
#
@mig
mig / unifying_pair.c
Created August 30, 2012 14:20
Pair logitec devices in Linux
/*
* Copyright 2011 Benjamin Tissoires <benjamin.tissoi...@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@mig
mig / color-theme-almost-monokai.el
Created May 31, 2012 05:53
color-theme-almost-monokai.el
;;; Almost Monokai: color-theme-almost-monokai.el
;;; A beautiful, fruity and calm emacs color theme.
;; Author: Prateek Saxena <prtksxna@gmail.com>
;; Author: Pratul Kalia <pratul@pratul.in>
;;
;; Based on the Monokai TextMate theme
;; Author: Wimer Hazenberg <http://www.monokai.nl>
;; Depends: color-theme
@mig
mig / install_efi_arch.sh
Created May 25, 2012 13:22
Adapted from arch-by-hand, more bare bones.
#!/bin/bash
# This script is designed to be run in conjunction with a UEFI boot using Archboot intall media.
# prereqs:
# --------------------
# EFI "BIOS" set to boot *only* from EFI
# successful EFI boot of Archboot USB
# mount -t vfat /dev/sdb1 /src
@mig
mig / emacs24.rb
Created November 29, 2011 23:28
Emacs 24 Formulate
require 'formula'
class Emacs24 < Formula
url 'http://ftpmirror.gnu.org/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
fails_with_llvm "Duplicate symbol errors while linking.", :build => 2334
# Stripping on Xcode 4 causes malformed object errors
@mig
mig / nginx
Created May 12, 2011 05:39
nginx init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nginx init.d script for Ubuntu 8.10 and lesser versions.
# Description: nginx init.d script for Ubuntu 8.10 and lesser versions.
### END INIT INFO
@mig
mig / zshrc
Created May 12, 2011 05:27
zshrc for remote servers
# ZSH config for remote servers
# Encoding
LANG=en_US.UTF-8
# Path
export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Appearence
# ls colors
@mig
mig / oh-my-zsh.zshrc
Created March 18, 2011 13:27
my oh-my-zsh zshrc
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="jreese"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
@mig
mig / terminal-emacs.el
Created February 23, 2011 05:59
Emacs config for terminal
;; emacs configuration suited for terminal use
(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)
class TestLibrary
@@stack = []
def self.stack
@@stack
end
def self.test_methods
public_instance_methods.grep(/^test/)
end