To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
#!/bin/bash | |
for elm in $@; do | |
database=$(echo $elm | cut -f1 -d '.') | |
tables=$(echo $elm | cut -f2 -d '.') | |
if [ $tables == "{*}" ]; then | |
tables=$(mysql -uroot -e "SHOW TABLES FROM $database") | |
tables=$(echo $tables | sed s",^Tables_in_$database,,") | |
fi |
# Lint JSON with python (the exit 255 stops xargs after the first failed command) | |
find . -name "*.json" -print | xargs -Ixx bash -c "echo JSON linting xx 1>&2; cat xx | python -mjson.tool > /dev/null || exit 255" |
Fonte: http://gohorseprocess.wordpress.com | |
1- Pensou, não é XGH. | |
XGH não pensa, faz a primeira coisa que vem à mente. Não existe | |
segunda opção, a única opção é a mais rápida. | |
2- Existem 3 formas de se resolver um problema, a correta, a errada e | |
a XGH, que é igual à errada, só que mais rápida. |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
#Se o erro for algo parecido com isto: | |
#building 'lxml.etree' extension | |
#gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w | |
#In file included from src/lxml/lxml.etree.c:239:0: | |
#src/lxml/etree_defs.h:9:31: erro fatal: libxml/xmlversion.h: Arquivo ou diretório não encontrado | |
#compilação terminada. | |
#error: command 'gcc' failed with exit status 1 | |
#basta instalar libxml2-dev e libxslt-dev |