Skip to content

Instantly share code, notes, and snippets.

@entryway
entryway / gist:271910
Created January 8, 2010 07:57 — forked from rkh/gist:267470
# Installing Rails 3.0.pre in it's own gemset using rvm.
# I use Rube Enterprise Edition for rails development.
# You might want to replace ree with Your Favorite Ruby Implementation(tm)
rvm use ree%rails3 # Create new gemset called rails3.
gem install rake test-spec thor sqlite3-ruby rack bundler # Get some gems we'll need (rails3 gemset should be empty)
git clone git://github.com/rails/rails.git && cd rails # Get rails source.
rake gem # build rails 3.pre
git submodule init && git submodule update # Get git dependencies.
cd arel && thor :build && thor :install && cd ../.. # Install arel
@entryway
entryway / gist:271909
Created January 8, 2010 07:57 — forked from rkh/gist:267470
# Installing Rails 3.0.pre in it's own gemset using rvm.
# I use Rube Enterprise Edition for rails development.
# You might want to replace ree with Your Favorite Ruby Implementation(tm)
rvm use ree%rails3 # Create new gemset called rails3.
gem install rake test-spec thor sqlite3-ruby # Get some gems we'll need (rails3 gemset should be empty)
git clone git://github.com/rails/rails.git && cd rails # Get rails source.
git submodule init && git submodule update # Get git dependencies.
cd rack && rake gem && gem install rack-1.1.*.gem # Install rack 1.1
cd ../arel && thor :build && thor :install && cd ../.. # Install arel
// only outputs if console available and does each argument on its own line
function log() {
if (window && window.console && window.console.log) {
var i, len;
for (i=0, len=arguments.length; i<len; i++) {
console.log(arguments[i]);
}
}
}
require "integrity"
Integrity.new(File.dirname(__FILE__) + "/config.yml")
project = Integrity::Project.first(:name => "Project Foo")
unless `git ls-remote #{project.uri}`.include?(project.commits.last)
project.build
end
RUBY = File.join(
Config::CONFIG['bindir'],
Config::CONFIG['ruby_install_name'] + Config::CONFIG['EXEEXT']).
sub(/.*\s.*/m, '"\&"')
1) Put terminal_clone_tab.sh somewhere in
your path and make sure it is executable
chmod u+x terminal_clone_tab.sh
2) Then add the following alias (~/.bash_profile or something)
alias nt='terminal_clone_tab.sh'
3) Then you can hit nt (for new tab) anywhere
and a new tab will open up in same directory.
If there is an easier way to do this, let me know [email protected].
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
:.,$s/^[<tab>]*\s*//
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;