Saturday, March 26, 2011

Turning off case-sensitive tab completion in bash

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


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

Thursday, March 10, 2011

Saturday, March 5, 2011

Building Xcode Projects From the Command Line

xcodebuild -project myProject.xcodeproj -alltargets

md5sum on Snow Leopard

The MD5 hash (or checksum) functions as a compact digital fingerprint of a file.

You can check the md5 hash of a file with the md5 command
md5 test.txt

The output looks like this
MD5 (test.txt) = ab41fdba223f971be13b1845122353cb

Tuesday, March 1, 2011

Dropbox as a git repo

In your Dropbox folder
mkdir Repositories
cd Repositories
mkdir myNewProject.git
cd myNewProject.git
git init --bare

In your project
cd ~/workspace/MyNewProject
git remote add origin ~/Dropbox/Repositories/myNewProject.git
git push origin master

more on this topic, using-gitdropbox-together-effectively or How to use Dropbox as a git repository