Archive

Archive for July, 2008

Vi tips

July 25th, 2008 No comments

Replace char with newline :

:s/X/^M/

^M = ctrl-V + m

Use DOS FOR loop to modify premissions on files/folders

July 18th, 2008 No comments

This assumes your usernames and homdirs are the same for example : user: alfred homedir : alfred

for /F %u in ('DIR /B A*.*') do v:\tools\xcacls.exe %u /T /E /C /G %u:RCWD /y

CentOS 5 – No module named cElementTree when running yum

July 14th, 2008 No comments

upgrade my elementtree

wget http://www.python.org/pyvault/centos-4-i386/python24-elementtree-1.2.6-5.el4.pyv.i386.rpm rpm -i python24-elementtree-1.2.6-5.el4.pyv.i386.rpm

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=3401

Tweak Firefox memory consumption

July 3rd, 2008 No comments

Type About:config in the Address bar.
right click and Add boolean value : config.trim_on_minimize
Set to true

More info here : http://kb.mozillazine.org/Memory_Leak
And originally read here : http://www.ynet.co.il/articles/0,7340,L-3563503,00.html