junction - sysinternal tool for winxp and above
mlink - with vista and above
Sunday, December 27, 2009
Saturday, November 7, 2009
Find lines of code in your repository
for ext in "*.java" "*.xml" "*.css" "*.jsp" "*.js" "*.sql"
do
echo -n "$ext,$location,"
find ./$location -iname "$ext" -exec wc -l '{}' \;|gawk '{total+=$1} END{print total}'
done
Thursday, October 22, 2009
Thursday, July 2, 2009
Getting tablespace Size
SELECT tablespace_name,
SUM (bytes) / 1024 / 1024 current_size,
autoextensible,
SUM (maxbytes) / 1024 / 1024 max_size
FROM dba_data_files
WHERE tablespace_name like '%'
GROUP BY tablespace_name, autoextensible
ORDER BY 1
Sunday, May 10, 2009
bash : search and replace from previous command
tar -cvf sandeep.tar sandeep/
!!:gs/sandeep/singhal will mean
tar -cvf singhal.tar singhal/
:gs is for global search and replace
bash - last argument of the previous command (nth argument)
- Get the last argument of the previous command : !!$
- Get the first argumnet of the previous command : !!^
- Get the 1st argument of the previous command : !!1
- Get the nth argument of the previous command : !!n
Examples :
$> ls :!!$ (or !$)
$> ls :!!^
$> ls :!!2
$> ls :!!n
Saturday, May 2, 2009
Trigger GC in eclipse.
This is a handy for eclipse which lets you to trigger gc in the eclipse instead of waiting for the jvm to schedule the GC .
Go to Window->Preferences->General, mark Show Heap status check box.
The current Heap usage with icon for "Run Garbage Collector" will appear at the bottom right.
It helps a lot in eclipse performance.
I find it pretty handy especially because I do not shutdown eclipse often.
Go to Window->Preferences->General, mark Show Heap status check box.
The current Heap usage with icon for "Run Garbage Collector" will appear at the bottom right.
It helps a lot in eclipse performance.
I find it pretty handy especially because I do not shutdown eclipse often.
Subscribe to:
Posts (Atom)