Showing posts with label cli. Show all posts
Showing posts with label cli. Show all posts

Thursday, July 14, 2011

Show Git Commits By Author

It is as simply as
git log --author=<PATTERN>

for example

git log --author=viktor

Tuesday, June 28, 2011

Migrating to Dotcloud CLI 0.4.x with 'pip: error: no such option: -u'

Checking the version number
$ dotcloud --version
DotCloud CLI version 0.3.1


Installing Pip (it is a tool for installing and managing Python packages)
$ sudo easy_install pip


Installing the dotcloud CLI 0.4.x
$ sudo pip install --upgrade dotcloud


In the dotcloud migration document they use pip -U but in Pip version 1.0.1 there is no such an option.

Checking the version number again.
$ dotcloud --version
DotCloud CLI version 0.4.0


All right.

Friday, June 24, 2011

Image width/height with Imagemagick in Command line

Imagemagick comes handy when you need information from an image.

# width
w=`identify -format "%w" image.png`

# height
h=`identify -format "%h" image.png`


More information on Imagemagick's identify.

Monday, May 30, 2011

useful iterm2 shortcuts

iTerm2 is a good replacement for Terminal on OS X

Splitting the window: Command+D to split the window vertically, or Command+Shift+D to split the window horizontally.

Switching between the sub-windows: Command+[ or Command+] or Command+Opt+arrows

Fullscreen: Command+Enter

Saturday, March 26, 2011

Turning off case-sensitive tab completion in bash

/etc/inputrc deals with the mapping of the keyboard for certain situations.

Adding

set completion-ignore-case on

to the file turns off case-sensitivity in tab completion.


echo set completion-ignore-case on | sudo tee -a /etc/inputrc