Skip to content

Instantly share code, notes, and snippets.

View calas's full-sized avatar

Jorge Calás calas

  • RubiconMD Healthcare Inc.
  • Santiago de Compostela, A Coruña, Spain
View GitHub Profile

Keybase proof

I hereby claim:

  • I am calas on github.
  • I am calas (https://keybase.io/calas) on keybase.
  • I have a public key ASC-G7gegHuSn4yeFORYdthZo4Rtl-Eh0Hc1vr8WzmQuFQo

To claim this, I am signing this object:

#!/bin/sh
ssh -t $@ 'exec tmux att' || ssh -t $@ 'exec tmux new'
@calas
calas / gist:3789591
Created September 26, 2012 18:08 — forked from olistik/gist:2627011
Ubuntu 12.04 setup (rbenv, janus, postgres)

Basic pre-requisites

  • Some utilities:
sudo apt-get install vim tmux git
  • Copy/paste from the command line:
sudo apt-get install xclip
@calas
calas / chef_solo_bootstrap.sh
Created April 22, 2012 19:55 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
tar -xvjf ruby-1.9.3-p194.tar.bz2
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local
make
[submodule "public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product"]
path = public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product
url = https://github.com/alohaeditor/Aloha-Plugin-Product.git
[submodule "public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save"]
path = public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Save
url = https://github.com/alohaeditor/Aloha-Plugin-Save.git
[submodule "public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr"]
path = public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr
Run Cucumber features features/static_pages.feature
Using the guard profile...
Disabling profiles...
...
1 scenario (1 passed)
3 steps (3 passed)
0m4.885s
/home/calas/.rvm/gems/ruby-1.9.2-p136@theproject/gems/rb-inotify-0.8.4/lib/rb-inotify/notifier.rb:183:in `open': No such file or directory - /home/calas/dev/client/theproject/tmp/cache/configuration_120110216-9803-1cy326l.lock (Errno::ENOENT)
from /home/calas/.rvm/gems/ruby-1.9.2-p136@theproject/gems/rb-inotify-0.8.4/lib/rb-inotify/notifier.rb:183:in `entries'
(defun insert-file-path (file)
"Insert path to file"
(interactive "FPath: ")
(insert (expand-file-name file)))
(global-set-key (kbd "C-c f") 'insert-file-path)
;;
(defun comment-or-uncomment-current-line-or-region ()
"Comments or uncomments current current line or whole lines in region."
;; http://blog.tuxicity.se/elisp/emacs/2010/05/07/clean-up-buffer-or-region-in-emacs.html
(defun clean-up-buffer-or-region ()
"Untabifies, indents and deletes trailing whitespace from buffer or region."
(interactive)
(save-excursion
(unless (region-active-p)
(mark-whole-buffer))
(untabify (region-beginning) (region-end))
(indent-region (region-beginning) (region-end))
(save-restriction
rake db:migrate --trace
(in /home/calas/dev/spree/testing_blah)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Loading haml-edge gem.
[find_by_param error] database not available?
[find_by_param error] database not available?
rake aborted!
Mysql::Error: Table 'testing_spree_dev.users' doesn't exist: SHOW FIELDS FROM `users`
@calas
calas / explanation.txt
Created October 21, 2009 15:05
Using git bisect in spree core
So...
$ rake test:functionals
It show the tests fails
I pick a commit that is not failing: f0c49b5213b974b97dcb7a1d089264708329ebcd
and...