.htaccess redirect
Posted by Cătălin on Mon, 7 Oct 2013.htaccess redirect
Your website can be accessed with www.domain.com and domain.com. Since Google penalizes this due to duplicated content reasons, you have to stick your domain to either www.domain.com or domain.com. You...
Read More...code
Capture hostname and uri using tshark
Posted by Cătălin on Tue, 24 Sep 2013Capture hostname and uri using tshark
Web traffic (port 80): tshark -i eth0 -f 'port 80' -l -t ad -n -R 'http.request' -T fields -e http.host -e http.request.uri -e ip.src
Read More...code
Linux Find Large Files
Posted by Cătălin on Tue, 24 Sep 2013You can easily list all large files along with size, by using the following syntax
You can easily list all large files along with size, by using the following syntax: Search or find big files Linux (50MB) in current directory, enter: $ find . -type f -size +50000k -exec ls -lh...
Read More...code
Mount USB flash in Linux
Posted by Cătălin on Mon, 15 Jul 2013Mount USB flash in Linux
Detecting USB flash: # fdisk -l Creating mount point: mkdir /mnt/usbflash Mount USB flash: mount /dev/sdb1 /mnt/usbflash
Read More...code
Temporarily stopping the X server
Posted by Cătălin on Wed, 10 Jul 2013Temporarily stopping the X server
Close the graphical session by selecting “System -> Logout” in the top menu. Press Ctrl+Alt+F1 This shuts down the X server, and we land in an alphanumerical window. However, the windows manager...
Read More...code