2011年6月9日 星期四

homebrew uninstallation commands on mac OSX


cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

2011年6月8日 星期三

Git Newbie command

Global setup:

Download and install Git
  git config --global user.name "Your Name"
  git config --global user.email losehole@gmail.com
        

Next steps:

mkdir test
  cd test
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:YOURNAME/test.git
  git push -u origin master
      

Existing Git Repo?

cd existing_git_repo
  git remote add origin git@github.com:YOURNAME/test.git
  git push -u origin master
      

Add and Commit your new file

    git add NEWFILENAME
git commit -m 'NEW commit'  
    git push -u origin master

Gravatar- an avatar in your web account management


Maybe after the Avatar fever, the Gravatar is an avatar that can use the one avatar to log in or sign up different website service.

2011年6月3日 星期五


What is lxml?
lxml is a python tool that can process XML and HTML.
For the reason that I need to use the XMLRPC function, I use the lxml to process 
the requests and responses to call server function and feedback message.   
There are lazy script here:

#sudo port install libxml2 libxslt
#export PATH=/opt/local/bin:$PATH
#export CFLAGS='-flat_namespace'
#sudo easy_install lxml
 
創用 CC 授權條款