Skip to content

Instantly share code, notes, and snippets.

View tundal45's full-sized avatar
👻
there is more to life than coding

Ashish Dixit tundal45

👻
there is more to life than coding
View GitHub Profile
@tundal45
tundal45 / .zshrc
Created November 7, 2011 22:08
Issues with running RVM with Rake
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
@tundal45
tundal45 / 1 - output
Created November 30, 2011 21:17
RVM & REE, why won't you just sit under the fucking tree?
echo $CC
/usr/bin/gcc
➜ cs git:(master) rvm reinstall --force ree-1.8.7-2010.02
Removing /Users/ashish/.rvm/src/ree-1.8.7-2010.02...
Removing /Users/ashish/.rvm/rubies/ree-1.8.7-2010.02...
Removing ree-1.8.7-2010.02 aliases...
Removing ree-1.8.7-2010.02 wrappers...
Removing ree-1.8.7-2010.02 environments...
Removing ree-1.8.7-2010.02 binaries...
Installing Ruby Enterprise Edition from source to: /Users/ashish/.rvm/rubies/ree-1.8.7-2010.02
rvm reinstall --force ree
Removing /Users/ashish/.rvm/src/ree-1.8.7-2011.03...
Removing /Users/ashish/.rvm/rubies/ree-1.8.7-2011.03...
Removing ree-1.8.7-2011.03 aliases...
Removing ree-1.8.7-2011.03 wrappers...
Removing ree-1.8.7-2011.03 environments...
Removing ree-1.8.7-2011.03 binaries...
Installing Ruby Enterprise Edition from source to: /Users/ashish/.rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /Users/ashish/.rvm/src/ree-1.8.7-2011.03
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
➜ rake db:create:all --trace
** Invoke db:create:all (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create:all
rake aborted!
uninitialized constant Mysql
/Users/ashish/.rvm/gems/ree-1.8.7-2011.03@cs/gems/activerecord-3.1.0/lib/active_record/railties/databases.rake:81:in `create_database'
git clone git@github.com:jduan/s10-int.git jduan-s10-intCloning into jduan-s10-int...
remote: Counting objects: 117, done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 117 (delta 71), reused 117 (delta 71)
Receiving objects: 100% (117/117), 14.10 KiB, done.
Resolving deltas: 100% (71/71), done.
➜ mendicant cd jduan-s10-int
➜ jduan-s10-int git:(master) ls
README.md
@tundal45
tundal45 / unix_books.md
Created February 20, 2012 20:03
This is a list of UNIX books that one should have around to get better at UNIX. The initial list below is started with recommendations from [Avdi Grimm](twitter.com/avdi). The idea is to have more people recommend books that need to be added to the list.
@tundal45
tundal45 / gpush.sh
Created March 23, 2012 01:37
This is what Geoff Massanek (https://github.com/gmassanek) & I hacked on to open the pull request URL on git push (using alias).
function current_git_branch {
git symbolic-ref HEAD | sed 's/refs\/heads\///'
}
# Assumes GIT URLS. No support for HTTPS
function git_repo_url {
git config --get remote.origin.url | sed 's/git@/https:\/\//' | sed 's/com:/com\//' | sed 's/.git$//'
}
function open_branch_url {
commit b242bf4e453f1a91703f006e9239ab0168256dd7
Author: bglusman <brian@enjyn.com>
Date: Sun Mar 18 22:21:08 2012 -0400
wiki methods on course and dryer path creation/use
diff --git a/app/models/course.rb b/app/models/course.rb
index baee48c..a98f0e3 100644
--- a/app/models/course.rb
+++ b/app/models/course.rb