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/PlugIns sudo mv AppleUSBFTDI.kext AppleUSBFTDI.disabled

now 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.

Continue reading

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/.

Older posts Newer posts