25 de febrero de 2016

$ git lola

Source (and full credits to): http://blog.kfish.org/2010/04/git-lola.html
The best tip I learned at Scott Chacon's talk at linux.conf.au 2010, Git Wrangling - Advanced Tips and Tricks was this alias:
        lol = log --graph --decorate --pretty=oneline --abbrev-commit
This provides a really nice graph of your tree, showing the branch structure of merges etc. Of course there are really nice GUI tools for showing such graphs, but the advantage of git lol is that it works on a console or over ssh, so it is useful for remote development, or native development on an embedded board.
It is even nicer when you turn syntax coloring on in git, which also has the advantage of colorizing diff output to warn about bad whitespace.
To get an idea of a whole project structure, I found myself often running git lol --all, where the --all option says to show all branches. I used that often enough that I made a new alias, git lola:
        lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
which has the added bonus of making me hum Lola every single day.
So, just copy the following into ~/.gitconfig for your full color git lola action:
        lol = log --graph --decorate --pretty=oneline --abbrev-commit
        lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
        branch = auto
        diff = auto
        interactive = auto
        status = auto

19 de febrero de 2016

From the ground up with GIT

A continuación el contenido, materiales y otras yerbas de la Tech Meetup "From the ground up with GIT", que di en el Tech Pub de Santex America, en febrero de 2016:

Link al evento: http://www.meetup.com/Tech-Meetup-Santex-Cordoba-Argentina/events/228759107/

Link a las slides: link

Link a las notas:

Link al video de la charla: link

Link a las scripts para generar conflictos: link

Graciasmiles a todos/as los/as asistentes por venir y por la tan activa participación, que volvió la charla en algo mucho más divertido y enriquecedor (al menos para mi :) ).


12 de febrero de 2016

Tweaking hidden files in Mac OS X


Ever wondered how to show/hide hidden files in your Mac OS X in the Finder app?

If so, let's get right to it:

Add this two aliases in your ~/.bash_profile file:

# Hidden files tweaks

alias show_hidden_files='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hide_hidden_files='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

And that's it!

Now, if you want to show the hidden files, just run this command in the console:

$ show_hidden_files

And if you want to hide them back:

$ hide_hidden_files

And that's it! :)