Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Swasey mig

  • LivingSocial
  • Washington DC
View GitHub Profile
View spellcheck.rb
# 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 Aug 30, 2012
Pair logitec devices in Linux
View unifying_pair.c
/*
* 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
color-theme-almost-monokai.el
View 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
Adapted from arch-by-hand, more bare bones.
View install_efi_arch.sh
#!/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 Nov 29, 2011
Emacs 24 Formulate
View emacs24.rb
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
nginx init.d script
View nginx
#! /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
zshrc for remote servers
View zshrc
# 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 Mar 18, 2011
my oh-my-zsh zshrc
View 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 Feb 23, 2011
Emacs config for terminal
View terminal-emacs.el
;; 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)
View nesting_prob_demo.rb
class TestLibrary
@@stack = []
def self.stack
@@stack
end
def self.test_methods
public_instance_methods.grep(/^test/)
end