Description
A specification sample for Lettuce (BDD-style for python language).
Output
$ lettuce Feature: some feature # features/some.feature:1
| find <directory> -name 'CVS' -type d | xargs -d "\n" git rm -r --cached |
| # Ubuntu 11.10 | |
| # http://www.webupd8.org/2012/03/how-to-synchronize-google-calendar-with.html | |
| sudo aptitude install xul-ext-lightning xul-ext-gdata-provider |
| [user] | |
| name = [username] | |
| email = [email] | |
| [color] | |
| ui = auto | |
| [alias] | |
| l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' | |
| ll = log --stat --abbrev-commit | |
| class Test | |
| def initialize(value) | |
| @value = value | |
| end | |
| def reverse | |
| @value = @value.reverse! | |
| end | |
| def value | |
| @value |
Description
A specification sample for Lettuce (BDD-style for python language).
Output
$ lettuce Feature: some feature # features/some.feature:1
| #!/bin/sh | |
| for i in {1..67} | |
| do | |
| FILE="phrack${i}.tar.gz" | |
| wget http://phrack.org/archives/tgz/${FILE} | |
| tar xvzf ${FILE} | |
| rm ${FILE} | |
| done |
| GRANT ALL PRIVILEGES ON <database>.* TO '<user>'@'<host>' IDENTIFIED BY '<password>'; | |
| FLUSH PRIVILEGES; |
| #!/bin/bash | |
| # | |
| # Searches process by name, print ps header | |
| # | |
| if [ $# -ne 1 ]; then | |
| echo "usage: $(basename $0) <name>" | |
| exit 1 | |
| fi |
| $ ldd spotify 2 | grep -i libxml | |
| libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00000038cc400000) |
| # Editor | |
| export EDITOR=gvim | |
| # Java, Groovy & Grails SDK and tools configuration | |
| export JAVA_HOME=/opt/java | |
| export GROOVY_HOME=/opt/groovy | |
| export GRAILS_HOME=/opt/grails | |
| export GRADLE_HOME=/opt/gradle |