Tuesday, 30 January 2018

Taking dump of SVN and restoring it

Dump of svn

svnadmin dump D:\SVN\Repository > D:/Jan312018.dump


Load svn

svnadmin load D:\SVN\Repository < D:/Jan312018.dump

Thursday, 18 January 2018

Installing libstdc++5 32bit on 64 bit ubuntu

sudo apt-get install libstdc++5:i386

The command fails with Unable to locate package



$ sudo dpkg --add-architecture i386 $ sudo dpkg --print-foreign-architectures i386 $ sudo apt-get update $ sudo apt-get install libstdc++5:i386 libstdc++5 for 32bit ll be installed

Monday, 24 August 2015

Generating Robot framework java keywords documentation (HTML + XML)

BAT File to generate xml documentation:

@echo off
set CLASSPATH=C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar

jython C:\Python27\Lib\site-packages\robot\libdoc.py -f xml %*


BAT File to generate xml documentation:
@echo off
set CLASSPATH=C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar

jython C:\Python27\Lib\site-packages\robot\libdoc.py -f html %*


To Generate documentation follow the below:
<BAT File Name> <Java File> <classname.extn>

the required documentation will be generated.

Monday, 15 December 2014

Enable Query Logging in MySQL

To enable query logging in MYSQL. Use the following command:

SET GLOBAL general_log = 'ON';

Linux helpful space utililization commands

Command to find all log files that are older than two days


  • find –name '*.log' –mtime +2 -exec ls –l {} \;


Command to find and delete all log files that are older than two days


  • find -name '*.log' -mtime +2 -exec rm {} \;


Command to find files with size more than 50 MB


  • find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Command to display dir structure with size in GB

  • du -h ./ | grep ^[0-9.]*G