ovi.ro

ovi.ro

Category Archives: Snippets

Snippets of usefull code

Line history on Git

# file path export FILE=file/path # line number export LINE=10 git 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] … Read more »