2014年1月19日 星期日

[Ubuntu] How to read a multipage tiff?

evince - Document Viewer

images - Read a multipage tiff? - Ask Ubuntu
http://askubuntu.com/questions/33491/read-a-multipage-tiff

[all variants] Need a TIFF viewer that can handle multiple pages.
http://ubuntuforums.org/showthread.php?t=1476756

2014年1月15日 星期三

GIT: How to tell a file is binary or text?

How to determine if Git handles a file as binary or as text? - Stack Overflow
http://stackoverflow.com/questions/6119956/how-to-determine-if-git-handles-a-file-as-binary-or-as-text

  1. git diff-tree -p 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD -- XXXX
  2. git diff-tree --numstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD -- XXXX
  3. git grep -I --name-only -e "" -- XXXX

4b823d… is a magic SHA which represents the empty tree