List every second the last accessed file

watch -n1 'ls -lr -u /mysql_logs/exports/hybris_stg_15_5_2009/'

 

Redirect with IPTABLE

#
sudo iptables -t nat -I PREROUTING -s ! 127.0.0.1 -p tcp --dport 3306 -j REDIRECT --to-ports 4040

#
# To remove the rule, and go back to the original situation
# user "-D" instead of "-I"
#
sudo iptables -t nat -D PREROUTING -s ! 127.0.0.1 -p tcp --dport 3306 -j REDIRECT --to-ports 4040

 

Skip postion during replication

STOP SLAVE;SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1 ;START SLAVE;

 

Determine FS blockSize

dumpe2fs /dev/mapper/VolGroup00-LogVol00 |grep 'Block size:'

 Build a jar file .. (well this is easy but ..)

 jar cvf TicTacToe.jar *

 


Latest conferences

We have 1479 guests and no members online