Mercurial tips & tricks for mac

Posted by kusno mudiarto at July 28th, 2008

I am collecting several useful mercurial tricks for me :

- See diffs when committing in vim
see : http://www.selenic.com/mercurial/wiki/index.cgi/DiffsInCommitMessageInVIM
but instead of using the instruction as is, I have to modify the string a little bit to work in my mac:
what I did is replacing :

 $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $?

with

 vim "+e $HGTMP/diff" '+set nobl buftype=help filetype=diff' "+vsplit $HGTMP/msg"
 

I’ll add more tricks later if I find any

Tags:

Posted in idea / rant| No Comments | 

Reminder to self. Never set the permission of the /

Posted by kusno mudiarto at July 24th, 2008

In a lapse of judgment, I set my hard drive permission to disable readonly for all user, except myself & admin (Using hard drive get info - sharing & permission ). The reasoning was because I can see my root when I enable wireless sharing.

It turned out to be a very bad decision though, my computer won’t boot up anymore. Luckily, I found some helps in the internet.

* first go into single user mode (by pressing command-s during bootup
* mount -a
* mount -uw
* chmod 755 /
* halt

and then restart your computer.

I hope it will fix your problem.

Tags:

Posted in idea / rant| No Comments | 

batch file rename in mac

Posted by kusno mudiarto at July 23rd, 2008

I am missing batch renaming functionality that I used to have in windows -> “ren *.xxx *.xxx.orig” in my macbook. But using utility “mmv”, I finally can do the same in mac & windows.

You can download the utility from here :

http://www.joel.lopes-da-silva.com/articles/computer-science-technology/62-tips-tricks/79-mmv-under-mac-os-x-leopard-for-mac-intel.html

some example usage :

http://debaday.debian.net/2007/06/13/mmv-mass-moving-and-renaming-files/

Tags:

Posted in idea / rant| No Comments |