Skip to content

Instantly share code, notes, and snippets.

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
export NODE_PATH=/usr/local/lib/node_modules
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "/Users/michaelmartinez/.rvm/scripts/rvm" ]] && source "/Users/michaelmartinez/.rvm/scripts/rvm"
@MichaelMartinez
MichaelMartinez / mountain-lion-brew-setup.markdown
Created August 7, 2012 05:58 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@MichaelMartinez
MichaelMartinez / style.md
Created July 30, 2012 04:25
10 CSS rules

##@media

@media screen and (max-width: 960px) {

}
for i in $HOME/local/*; do
[ -d $i/bin ] && PATH="${i}/bin:${PATH}"
[ -d $i/sbin ] && PATH="${i}/sbin:${PATH}"
[ -d $i/include ] && CPATH="${i}/include:${CPATH}"
[ -d $i/lib ] && LD_LIBRARY_PATH="${i}/lib:${LD_LIBRARY_PATH}"
[ -d $i/lib ] && LD_RUN_PATH="${i}/lib:${LD_RUN_PATH}"
# uncomment the following if you use macintosh
# [ -d $i/lib ] && DYLD_LIBRARY_PATH="${i}/lib:${DYLD_LIBRARY_PATH}"
[ -d $i/lib/pkgconfig ] && PKG_CONFIG_PATH="${i}/lib/pkgconfig:${PKG_CONFIG_PATH}"
[ -d $i/share/man ] && MANPATH="${i}/share/man:${MANPATH}"
@MichaelMartinez
MichaelMartinez / gist:3101327
Created July 12, 2012 21:52 — forked from anonymous/gist:139987
A ruby snippet for Parsing and cleaning Word HTML
#
# This function takes messy Word HTML pasted into a WYSIWYG and cleans it up
# It leaves the tags and attributes specified in the params
# Copyright (c) 2009, Radio New Zealand
# Released under the MIT license
require 'rubygems'
require 'sanitize'
def clean_up_word_html(html, elements = ['p', 'b', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'], attributes={})
$ bundle package
$ bundle install
$ af push <appname> --runtime=ruby193
@MichaelMartinez
MichaelMartinez / af.bash
Created June 28, 2012 05:32
af gem install
$ gem install af
@MichaelMartinez
MichaelMartinez / afspace.bash
Created June 28, 2012 05:15
AppFog out of disk space error
====> /logs/err.log <====
# Logfile created on 2012-06-28 04:40:57 +0000 by logger.rb/25413
F, [2012-06-28T04:40:57.330713 #19883] FATAL -- : Disk usage limit of 100M exceeded.
F, [2012-06-28T04:40:57.330800 #19883] FATAL -- : Actual usage was 103M, process terminated.
bundle exec rake assets:precompile