Melhoria do log Git

Melhore a saída do log git com este alias. Depois é só ligar git lole ver a magia! git config –global –add alias.lol “log –graph –decorate –pretty=oneline –abbrev-commit –all”

Continuar lendo

Visualizando logs do Git

# Add to your .gitconfig under [alias]# kinda like https://github.com/danielribeiro/dotfiles/blob/master/.gitconfig# simple logalias.l log –decorate# log with detailed commitsalias.ll log -p –decorate# log with the changed filesalias.ls log –stat –decorate# log …

Continuar lendo

Cauda simples em Java com Shutdownhook

import java.io.File;import java.io.RandomAccessFile;import java.util.logging.Level;import java.util.logging.Logger;/*** based on http://stackoverflow.com/a/559146/1313040* also based on http://stackoverflow.com/a/2922031/1313040*/public class Tail implements Runnable { private long _updateInterval = 1000; private long _filePointer; private File _file; private static …

Continuar lendo