Jan 06
sed 湔亙瑼獢批捆靽格對剁
OSXsed銝祆銵砍貊敺桐憭芯璅
sed -i "" 's/targetString\replaceString//g' targetfile
sed -i -e 's/targetString\replaceString//g' targetfile
sed -ie 's/targetString\replaceString//g' targetfile
sed -i "" -e 's/targetString\replaceString//g' targetfile
剝 find 隞斗撠瑼獢
find ./ -name "*.xml" -type f -exec sed -ie 's/package="com.android.launcher"/package="com.android.launcher2"/' {} \;
ps. 隞敺嚗瑼隞賣冽敺W銝”e”
Tagged with: cli • find • osx • sed • tips • Unix-like
Dec 28
拍決acPorts憟隞嗥頂蝯曹摰鋆 http://www.macports.org/
隞 trace lftp source code 箔
銝tarball
wget -c http://ftp.yars.free.net/pub/source/lftp/lftp-4.1.1.tar.gz
閫憯蝮
tar zxvf lftp-4.1.1.tar.gz
source code folder
瑁 htags 靘Y source code 蝬脤
screenshot:

閬撠質 HTML 桅銝剖銝 cgi-bin 摮桅啣 .htaccess嚗
Options +ExecCGI
AddHandler cgi-script .cgi
ps. 雿 Mac OS X 10.6 銝曆箸暻潭迤蝣箄 CGI-BIN 函寞嚗隞交急⊥撠皛踹舀嚗瘝脩仿閰脫暻潔g
ref1: http://chunchaichang.blogspot.com/2010/05/gtags-trace-code.html
ref2: http://williewu.blogspot.com/2007/02/gnu-global-souce-code-tag-system.html
ref3: http://welkinchen.blogspot.com/2009/10/gnu-global.html
Tagged with: cli • Developer • osx • Programming • StudyNote • Unix-like
Feb 24
JosephJ 隞蝝 zsh 憟賢敺憟賜剁潭臬停蝯 OS X 閮剖瑼銝靘閰衣拐銝銝
$ curl http://stuff.mit.edu/~jdong/misc/zshrc-osx-blackonwhite > ~/.zshrc
蝯閰西銝 ls 潛暹鈭航炊嚗潭舀 ~/.zshrc ll, ls 抵 alias 閮餉圾韏瑚嚗撠曹航炊閮臭
Tagged with: osx • Unix-like
Jan 20
單 iPhone App 隤蝟餃典啣嚗 Localizable.strings 箇楊蝣潮 binary 瑼嚗瘝颲行湔亦冽摮蝺刻摩其耨嫘
曉唳寞 Apple binary property list 頧 XML
plutil -convert xml1 path/to/preferences.plist
link: Convert a Binary Property List to XML – david winter
Tagged with: cli • iPhoneApp • osx • XML
Nov 12
箇 Leopard 批遣 Python 其璅∪銝銝剜憿
隞乩 MacPorts 鋆 Python 2.6嚗鋆憟賭敺箇
To fully complete your installation and make python 2.6 the default, please run
sudo port install python_select
sudo python_select python26
python_select嚗Switch the default python interpreter
隞斤扳瘝=.=
航芸楛雿蝯瘥頛靽
sudo ln -s /opt/local/bin/python python
Tagged with: cli • osx • Python • tips • Unix-like
啣