Skip to content

Instantly share code, notes, and snippets.

@rodreegez
rodreegez / .vimrc
Created May 12, 2011 10:46
my vim settings, use at your own risk
set nocompatible " Must come first because it changes other options.
call pathogen#runtime_append_all_bundles() " Pathogen
runtime macros/matchit.vim " ruby text blocks
syntax enable
set background=dark
colorscheme solarized
@rodreegez
rodreegez / gist:740759
Created December 14, 2010 17:39
hydra verbose output
wkst-150:hydra_test Rodreegez$ time RAILS_ENV=test rake hydra
(in /Users/Rodreegez/Projects/scratch/hydra_test)
1292348265.678 MASTER| Initialized
1292348265.67811 MASTER| Files: (["test/unit/1_test.rb", "test/unit/10_test.rb", "test/unit/7_test.rb", "test/unit/9_test.rb", "test/unit/8_test.rb", "test/unit/6_test.rb", "test/unit/3_test.rb", "test/unit/2_test.rb", "test/unit/5_test.rb", "test/unit/4_test.rb", "test/functional/tags_controller_test.rb", "test/functional/blog_posts_controller_test.rb", "test/functional/authors_controller_test.rb", "test/unit/author_test.rb", "test/unit/helpers/blog_posts_helper_test.rb", "test/unit/helpers/tags_helper_test.rb", "test/unit/blog_post_test.rb", "test/unit/tag_test.rb", "test/unit/helpers/authors_helper_test.rb"])
1292348265.67816 MASTER| Workers: ([{"type"=>"local", "runners"=>2}, {"directory"=>"/Users/mint/Projects/hydra_test", "connect"=>"mini", "type"=>"ssh", "runners"=>2}])
1292348265.67818 MASTER| Verbose: (true)
Hydra Testing [>
@rodreegez
rodreegez / gist:740747
Created December 14, 2010 17:27
config/hydra.yml
---
sync:
directory: /Users/Rodreegez/Projects/scratch/hydra_test
exclude:
- tmp
- log
- doc
workers:
-
runners: 2
@rodreegez
rodreegez / gist:738271
Created December 12, 2010 19:46
copy files from 1 directory into another
Beelzebub:~ Rodreegez$ mkdir dir1
Beelzebub:~ Rodreegez$ touch dir1/1
Beelzebub:~ Rodreegez$ touch dir1/2
Beelzebub:~ Rodreegez$ touch dir1/3
Beelzebub:~ Rodreegez$ touch dir1/4
Beelzebub:~ Rodreegez$ mkdir dir2
Beelzebub:~ Rodreegez$ cp dir1/* dir2/
Beelzebub:~ Rodreegez$ ls dir1
1 2 3 4
Beelzebub:~ Rodreegez$ ls dir2

Awesome bash function for switching to a project

_get_project_names(){
  local cur prev base
  COMPREPLY=()
  cur="${COMP_WORDS[COMP_CWORD]}"
  prev="${COMP_WORDS[COMP_CWORD-1]}"
  local names=$(for x in `ls -d1 /Users/$USER/Projects/*`; do echo ${x/\/Users\/$USER\/Projects\//} ; done)
 COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
wget http://ftp.de.debian.org/debian/pool/main/r/redis/redis-server_1.2.6-1_i386.deb
sudo dpkg -i redis-server_1.2.6-1_i386.deb

source

sudo apt-get install libcurl4-gnutls-dev
sudo gem install typhoeus

source

  sudo apt-get install libxml2 libxml2-dev libxslt1-dev
  sudo gem install nokogiri

source

sudo apt-get install aspell libaspell-dev aspell-en
sudo gem install raspell

source

@rodreegez
rodreegez / rails_tested.md
Created May 6, 2010 15:24
Hudson, Ruby Enterprise Edition, Nginx.

Testing Rails with Hudson CI

Written for Ubuntu LTS 10.4

Update and upgrade

  $ sudo aptitude update
  $ sudo aptitude upgrade