You've forgot one file out of your last commit, didn't ya?

2015-09-20 Nerd Software sergio
And now you’ve got 2 commits that were supposed to be one. Fear not! Add this to your Alias section of ~/.gitconfig: squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f" Now you can simply do a git squash 2 to join these last 2 commits together.

Arduino with Mac OS X Yosemite

2015-03-22 Hardware Nerd sergio
trying to download an arduino program in Yosemite and not working? The FTDI driver Apple wrote is the culprit. `disable the Apple FTDI driver first cd /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugInssudo mv AppleUSBFTDI.kext AppleUSBFTDI.disablednow reboot ` Download the new driver here: http://www.ftdichip.com/Drivers/VCP.htm When Ive tried, the last version was v2.2.18: http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_18.dmg Install the new driver and happy arduino.

homestead 2.0 nfs mounts

2015-02-17 Nerd Software sergio
So you are using homestead, all fancy with it, to discover later that its slow, really slow. After some googling around you discover that you can use NFS instead, and a few solutions involve changing homestead code. Not true. You only need to add a “type: nfs” in your mount point config in Homestead.yaml: `

artisan in any subdir

2015-02-08 Nerd sergio
So shell git aliases always runs in the repo root directory! <br /> git config --global --add alias.artisan '!./artisan '<br /> alias art='git artisan'<br /> There, you can run artisan in any subdirectory of your git repository without messing up with PATH.

Tabs no terminal renomeados para os hosts ssh&#8217;eados.

2013-06-22 Apple Nerd sergio
Para a posteridade, um pequeno truque de escapes para o terminal Mac OS para renomear o tab de acordo com o host para qual você fez ssh: <br /> $ cat /usr/local/bin/ssh<br /> #!/bin/bash<br /> printf "\e]1;`echo $* | /usr/bin/sed -Ee 's/^.+\@//'`\a"<br /> /usr/bin/ssh $*<br /> printf "\e]1;bash\a"<br /> Claro, além disso coloque /usr/local/bin na frente no path de /usr/bin/.

Bolo de Chocolate e Sour Cream com cobertura de manteiga de amendoim e chocolate com manteiga de amendoim

2013-04-08 Culinária sergio
Já fiz essa receita umas 3 ou 4 vezes e nos dois últimos aniversários da minha filha, e no último inclusive a pedido da aniversariante. receita original no livro Sky High: Irresistible Triple-Layer Cakes receita para 3 massas redondas de 8 polegadas, serve 12 a 16 pessoas. 2 xícaras de farinha de trigo 2 xícaras de açúcar (originalmente 2 e 1/2); 3/4 xícara de cacau em pó (se usar chocolate em pó reduza + ainda o açúcar e carregue um pouco mais no chocolate em pó); 2 colheres de chá de fermento 1 colher de chá de sal 1 xícara de óleo vegetal neutro (de canola, girassol ou soja) 1 xícara de sour cream (na falta de sour cream, misture partes iguais de iogurte grego e cream cheese ou creme de ricota com um pouco de suco de limão) 1 1/2 xícaras de água 2 colheres de sobremesa de vinagre 1 colher de chá de extrato de baunilha 2 ovos Pré-aqueça o forno à 180ºC, prepare a/as bandejas cobrindo-as com manteiga ou óleo e farinha de trigo. Continue reading
Older posts Newer posts