git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
| sudo apt-get install xvfb | |
| sudo apt-get install firefox | |
| xvfb-run cucumber |
| 1. install virtualbox from oracle repo: https://www.virtualbox.org/wiki/Linux_Downloads (disable source repo) | |
| 2. install linux-headers-generic package | |
| 3. instal p7zip-full package | |
| 4. download image from http://www.modern.ie/en-us/virtualization-tools | |
| 5. 7z e <zipfile> | |
| 6. import image from virtualbox |
| //do to http://www.daft.ie/lettings/ and run: | |
| function selectOption(selector, optionsToSelect){ | |
| var items = document.querySelectorAll(selector + ' > option'); | |
| for (var item of items) { | |
| for(var i = 0; i < optionsToSelect.length; i++){ | |
| if(item.text.match(optionsToSelect[i]) ){ | |
| item.selected = true; | |
| console.log(item.text); | |
| } |
| [ | |
| { title:'Virtual Panel: Code-to-Test Ratios, TDD and BDD', | |
| date: '20/12/2012', | |
| ref: 'http://www.infoq.com/articles/virtual-panel-tdd-bdd', | |
| description: 'Interview about TDD and BDD to J. B. Rainsberg, Dan North, Gojko Adzic, Ron Jeffries and Steve Freeman', | |
| tags: ['article', 'agile', 'testing', 'bdd', 'tdd', 'infoq']}, | |
| { title:"Ten Oddities And Secrets About JavaScript", | |
| date: "21/12/2012", | |
| ref: "http://coding.smashingmagazine.com/2011/05/30/10-oddities-and-secrets-about-javascript", |
| def coin_change(amount, denominations, partial_acc = [], acc = []) | |
| denominations.each { |e| | |
| acc.push(partial_acc.sort) if amount == 0 | |
| if amount - e >= 0 | |
| immutable_partial_acc = partial_acc.dup.push(e) | |
| coin_change(amount - e, denominations, immutable_partial_acc, acc) | |
| end | |
| } | |
| return acc.uniq | |
| end |
| #.bashrc | |
| alias ber='bundle exec rspec' | |
| alias be='bundle exec' | |
| export TERM=xterm-256color |
| --type-add=css=.sass,.less,.scss | |
| --type-add=ruby=.rake,.rsel,.builder,.thor | |
| --type-add=html=.haml,.html.erb,.html.haml | |
| --type-add=js=.js.erb,.coffee | |
| --type-set=cucumber=.feature | |
| --type-set=c=.c,.cpp,.ino,.pde,.h | |
| --ignore-dir=vendor | |
| --ignore-dir=log | |
| --ignore-dir=tmp | |
| --ignore-dir=doc |
| #decrypt | |
| gpg -o ./Desktop/personal.tgz -d ./Dropbox/personal.tgz.gpg && cd ./Desktop/ && tar xvzf personal.tgz && rm personal.tgz && cd .. | |
| #encrypt | |
| cd ./Desktop/ && tar cvzf - personal/ | gpg -esr $PGP_RECIPIENT > ../Dropbox/personal.tgz.gpg |
| set encoding=utf-8 | |
| set nocompatible " Must come first because it changes other options. | |
| syntax enable " Turn on syntax highlighting. | |
| set tabstop=2 " Global tab width. | |
| set shiftwidth=2 " And again, related. | |
| set expandtab " Use spaces instead of tabs | |
| set softtabstop=2 " Makes the spaces feel like real tabs |