Moved to Blogger

January 24, 2011 at 2:34 am | Posted in Uncategorized | Leave a comment

This blog will not be updated and move to Blogger
Sorry for the inconvenience.

git

January 12, 2011 at 11:45 am | Posted in android, ubuntu | Leave a comment
Tags:

git diff
find the different between local and server.

git diff .
find the different between . and server.

git reset –hard
all the changes are lost.

git reset –hard HEAD~2
reset to previous 2 commit

git reset –hard
reset to commit-id

git pull
sync code

git branch -f
change branch

git checkout
check out

count from file output

January 12, 2011 at 11:39 am | Posted in ubuntu | Comments Off on count from file output
Tags: ,

cat file | cut -f 1 | awk ‘{tot=tot+$1} END {print tot}’

Blog at WordPress.com.
Entries and comments feeds.