Category: Snippets

Line history on Git

# file pathexport FILE=file/path# line numberexport LINE=10git log –format=format:%H $FILE | xargs -L 1 git blame $FILE -L $LINE,$LINE | uniq -c

Clear putty window fully

If you want to full clear putty window including the scroll history with just a command, here is your answer.It seems there is a way to clear the scroll buffer just by sending some special characters with print.[php toolbar=”false”]printf ‘\033[3J'[/php]To make it easier, just put it in … Read more »