Skip to content

Instantly share code, notes, and snippets.

@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 aspell libaspell-dev aspell-en
sudo gem install raspell

source

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

source

sudo apt-get install libgpgme11-dev

sudo gem install ruby-gpgme

@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

Coding Rails with Homebrew

Right now, this assumes you are using Snow Leopard.

Install Homebrew

Homebrew is MacPorts (or APT) without the suck. http://github.com/mxcl/homebrew