Skip to content

Instantly share code, notes, and snippets.

View deiga's full-sized avatar

Timo Sand deiga

View GitHub Profile
$ echo GEM_PATH=$GEM_PATH
GEM_PATH=/Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon:/Users/timosand/.rvm/gems/ruby-2.0.0-p0@global
$ echo PATH=$PATH
PATH=/Users/timosand/.nvm/v0.10.0/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/sbin:/usr/local/bin:/usr/local/share/python:/Users/timosand/.rvm:/Users/timosand/.rvm/bin:/Users/timosand/bin:/usr/local/share/npm/bin:/Users/timosand/dotfiles/box/bin:./bundler_stubs:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:./bin:/Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/bin:/Users/timosand/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/timosand/.rvm/rubies/ruby-2.0.0-p0/bin
$ cd ; cd -
~/Documents/Code/Rails/roydon
Using /Users/timosand/.rvm/gems/ruby-2.0.0-p0 with ge
/Users/timosand/Dropbox/Code/Rails/roydon/spec/controllers/application_controller_spec.rb:4:in `block in <top (required)>': undefined method `controller' for #<Class:0x007fda0a0125c0> (NoMethodError)
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:242:in `module_eval'
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:242:in `subclass'
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:228:in `describe'
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/rspec-core-2.13.1/lib/rspec/core/dsl.rb:18:in `describe'
from /Users/timosand/Dropbox/Code/Rails/roydon/spec/controllers/application_controller_spec.rb:3:in `<top (required)>'
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/zeus-0.13.3/lib/zeus/load_tracking.rb:50:in `load'
from /Users/timosand/.rvm/gems/ruby-2.0.0-p0@roydon/gems/zeus-0.13.3/lib/zeus/load_tracking.rb:50
@deiga
deiga / .zprofile
Last active December 17, 2015 03:28
sed -e '/source.*scripts\/rvm/ d; /\. .*scripts\/rvm/ d;' .zprofile
#[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
#echo 'zprofile' $0 # Debug
# Locale settings
export LANG="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
# Customize to your needs...
RVMS_PATH=$rvm_path:$rvm_bin_path # Add RVM to PATH for scripting
BIN_PATH=$HOME/bin # Add ~/bin to PATH
@deiga
deiga / pom.xml
Last active December 18, 2015 11:39
Snippets for configuring Jackson2 and JodaTime DateTime serialisation
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>2.2.2</version>
</dependency>
@deiga
deiga / cleanup-rvm
Created October 12, 2013 23:30
Fully remove RVM installation
#!/bin/bash
/usr/bin/sudo rm -rf $HOME/.rvm $HOME/.rvmrc /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm
/usr/bin/sudo /usr/sbin/groupdel rvm
/bin/echo "RVM is removed. Please check all .bashrc|.bash_profile|.profile|.zshrc for RVM source lines and delete or comment out if this was a Per-User installation."
@deiga
deiga / xtrace
Last active December 28, 2015 19:09
zsh ztrace output on new shell
+/Users/timosand/.zprofile:3> setopt promptsubst
+/Users/timosand/.zprofile:4> typeset -F SECONDS
+/Users/timosand/.zprofile:5> PS4='+{$SECONDS}%N:%i> '
+{0.0053540000}/Users/timosand/.zprofile:8> export 'LANG=en_GB.UTF-8'
+{0.0062160000}/Users/timosand/.zprofile:9> export 'LC_ALL=en_GB.UTF-8'
+{0.0062710000}/Users/timosand/.zprofile:12> BIN_PATH=/Users/timosand/bin:/Users/timosand/local/bin
+{0.0062940000}/Users/timosand/.zprofile:13> BOX_PATH=/Users/timosand/dotfiles/box/bin
+{0.0063110000}/Users/timosand/.zprofile:14> PATH=/Users/timosand/bin:/Users/timosand/local/bin:/Users/timosand/dotfiles/box/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin
+{0.0063850000}/Users/timosand/.zprofile:16> case darwin13.0 (darwin*)
+{0.0064140000}/Users/timosand/.zprofile:18> COREUTILS_PATH=/usr/local/opt/coreutils/libexec/gnubin
@deiga
deiga / gist:8408654
Created January 13, 2014 21:37
Error while reinstalling ocatve 3.8 on OSX 10.9.1
This file has been truncated, but you can view the full file.
brew reinstall -vd octave   1   steeri
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/octave.rb
==> Reinstalling octave -vd
rm /usr/local/bin/octave-config-3.8.0
rm /usr/local/bin/octave-config
rm /usr/local/bin/octave-cli-3.8.0
rm /usr/local/bin/octave-cli
rm /usr/local/bin/octave-3.8.0
rm /usr/local/bin/octave
rm /usr/local/bin/mkoctfile-3.8.0
@deiga
deiga / octave.log
Created January 23, 2014 19:12
brew install -vd octave --with-ftlk --with-qt --without-check
This file has been truncated, but you can view the full file.
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/octave.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/gnu-sed.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/texinfo.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/fftw.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/readline.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/arpack.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/suite-sparse.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/tbb.rb
/usr/local/Library/brew.rb: loading /usr/local/Library/Formula/hdf5.rb
@deiga
deiga / npm-debug.log
Last active August 29, 2015 13:56
npm errors out on RPi
$ npm install
npm http GET https://registry.npmjs.org/dotenv
npm http GET https://registry.npmjs.org/grunt/0.4.1
npm http GET https://registry.npmjs.org/sails-disk
npm http GET https://registry.npmjs.org/optimist/0.3.4
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/restler
npm http GET https://registry.npmjs.org/sails/0.9.9
npm http 200 https://registry.npmjs.org/grunt/0.4.1
@deiga
deiga / .amethyst
Created March 2, 2014 06:40
.amethyst
{
"LAYOUTS": "----------------------",
"layouts": [
"tall",
"fullscreen",
"column",
"floating"
],
"MODIFIERS": "----------------------",