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
ENV['BUNDLE_GEMFILE'] = 'NewGemfile' | |
Bundler.send(:remove_instance_variable, :@setup) | |
Bundler.send(:remove_instance_variable, :@definition) | |
# Bundler.send(:remove_instance_variable, :@completed_groups) | |
Bundler.send(:remove_instance_variable, :@load) | |
Bundler.send(:remove_instance_variable, :@settings) |
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 bash | |
sudo gem update | |
yes | sudo gem clean | |
sudo gem update --system | |
if [ ! -f /usr/local/bin/brew ] | |
then | |
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)" | |
fi |
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
# There is a better way to separate output with \t? | |
ps axo pid,rss,pcpu,command | grep -vE "^USER|grep" | awk '{print $1"\t"$2"\t"$3"\t"$4" "$5" "$6}' |
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
$ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" |
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
$ brew install node |
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
$ curl http://npmjs.org/install.sh | sh |
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
$ npm install -g stylus |
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 your_project | |
$ stylus -w public/stylesheets/*.styl -c |
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
$ stylus -C public/stylesheets/foo.css | |
# or | |
$ stylus -C public/stylesheets/*.css |
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 -e | |
for ruby in $(rvm list strings) | |
do | |
echo -e "\e[32m======================================================\e[0m" | |
echo -e "\e[32mUsing ruby \e[1m$ruby\e[0m" | |
echo -e "\e[32m======================================================\e[0m" | |
cmd="rvm $ruby exec ""echo yes | rvm gemset empty""" | |
echo "Cleaning $ruby gems" | |
echo -e $cmd; $cmd | |
echo |