Skip to content

Instantly share code, notes, and snippets.

View clm-a's full-sized avatar

Clément Alexandre clm-a

View GitHub Profile
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@JackNorris
JackNorris / rbenv-install-system-wide.sh
Created February 13, 2012 22:29 — forked from JackNorris/rbenv-install-system-wide.sh
Ubuntu 11.10: rbenv install and system wide install
#!/bin/bash
# Ubuntu 11.10 rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on Ubuntu 11.10, also allows single user installs.
# Install pre-requirements
apt-get -y install build-essential git-core curl libssl-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
# Find me at https://gist.github.com/863277
# Run me with "rails new myapp -J -m https://gist.github.com/raw/863277/rails3-template-with-devise-compass-and-friends.rb"
# You should visit
# http://everydayrails.com/2011/02/28/rails-3-application-templates.html
# http://railswizard.org
# http://stackoverflow.com/questions/4999207/rails-3-application-templates
# https://github.com/fnichol/rails-template-recipes
# for some inspiration about application templates.
# twitter.com/@clmntlxndr
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=