tail -f /var/svc/log/site-node-service\:default.log
Friday, April 15, 2011
Thursday, April 14, 2011
Reset Joyent Smartmachine Nodejs git repo
cd ~
rm -rf repo
mkdir repo
cd repo
git --bare init
cp /opt/nodejs/post-receive* hooks/
cd ~
Deleting the old repo, creating a new one and then copy the post-recieve hooks.
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
to the file turns off case-sensitivity in tab completion.
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
Thursday, March 10, 2011
Disable the text-highlighting magnifier on touch-hold on Mobile Safari / Webkit
<style>
* {
-webkit-user-select: none;
}
</style>
Saturday, March 5, 2011
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
The output looks like this
MD5 (test.txt) = ab41fdba223f971be13b1845122353cb
You can check the md5 hash of a file with the md5 command
md5 test.txtThe output looks like this
MD5 (test.txt) = ab41fdba223f971be13b1845122353cb
Tuesday, March 1, 2011
Dropbox as a git repo
In your Dropbox folder
In your project
more on this topic, using-gitdropbox-together-effectively or How to use Dropbox as a git repository
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
Subscribe to:
Posts (Atom)