This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#bash script to setup rbenv in one shot. | |
#And as a bonus, I've thrown in bundler | |
sudo apt-get -y install git-core curl | |
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mail' | |
def create_observations(file) | |
#Here's were we create observations based on the file | |
end | |
Mail.defaults do | |
retriever_method :pop3, :address => "pop.gmail.com", | |
:port => 995, | |
:user_name => "[email protected]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pre commit hook that prevents FORBIDDEN code from being commited. | |
# Add unwanted code to the FORBIDDEN array as necessary | |
FILES_PATTERN='\.(rb|js|coffee)(\..+)?$' | |
FORBIDDEN=( debugger ruby-debug ) | |
for i in "${FORBIDDEN[@]}" | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
if ARGV.size != 2 | |
puts "Usage: #{$0} <from_language> <to_language>" | |
exit -1 | |
end | |
require 'rubygems' | |
require 'ya2yaml' # this gem is needed for this to work! | |
require 'yaml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# One stop-shop to install rbenv, friends and ruby 1.9.3 | |
# Author: Luis Saffie <[email protected]> | |
# USAGE: curl https://gist.github.com/lsaffie/6258406/raw/rbenv-ubuntu-install |bash | |
echo "=========================" | |
echo "remove rvm" | |
echo "=========================" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#author: Luis Saffie <[email protected]> | |
#url: www.saffie.ca | |
#twitter: lsaffie | |
# | |
#tmux1.8 has some great features. One of them is pane zooming.. | |
#http://blog.sanctum.geek.nz/zooming-tmux-panes/ | |
#however, tmux 1.8 depends on libevent2 which does not come with 10.04 | |
#solution: build from scratch! | |
#NOTE: LDFLAGS is used to build tmux because for some reason it can't find the ld_libs from libevent2.. Everything done by this script is legit thought... | |
#USAGE: wget -O - https://gist.github.com/lsaffie/6335957/raw/tmux18-ubuntu-10-04 |bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
source $HOME/.bashrc | |
# Pimp out my prompt | |
NOCOLOR="\[\033[0m\]" | |
LOCALHOST="localhost" | |
BAR="----" | |
BLK="\[\033[0;30m\]" ; BLK1="\[\033[1;30m\]" #dark grey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
wget http://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
sudo ln -s ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs | |
sudo ln -s ~/phantomjs-2.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
sudo ln -s ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "===== enable eth1 networking bug ====" | |
sudo echo '' > /etc/udev/rules.d/70-persistent-net.rules | |
mkdir ~/.bundle | |
echo "BUNDLE_LOCAL__HOMESTARS_RUNNER: /vagrant/homestars_runner" > ~/.bundle/config | |
cd /vagrant | |
[ ! -f /vagrant/homestars_runner ] && git clone [email protected]:homestars/homestars_runner.git | |
[ ! -f /vagrant/homestars-crm ] && git clone [email protected]:homestars/homestars-crm.git | |
[ ! -f /vagrant/homestars-mobile-server ] && git clone [email protected]:homestars/homestars-mobile-server.git |
OlderNewer