Month: June 2011

Batch download using wget

To get a clean download, if you knows the file format you want, you can do this: wget -nd -r -l1 –no-parent -A.mp3 -A.wma http://www.foo.com/mp3/ To explain briefly the options speficied; -nd no directory, by default wget creates a dir -r recursively download -l1 (L one) level 1, download only of that particular folder, don’t…


Block hotlinking images

Using the .htaccess code below will essentially block the image from being server and pull an image an existing image located on imgurl or some other image hosting site. RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?g33kinfo\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://imgur.com/tSEqO [L]


Graylog2

From graylog2.org Graylog2 is an open source log management solution that stores your logs in MongoDB. It consists of a server written in Java that accepts your syslog messages via TCP, UDP or AMQP and stores it in the database. The second part is a web interface that allows you to manage the log messages…


CSF Messenger

CSF Messenger offers a TEXT and HTML page to be displayed when a person is blocked in the firewall as well as an image to be displayed. Those can be found at /etc/csf/messenger and can be changed, but CSF will need to be restarted when changed. Upgrade CSF in the server to the latest version…


What’s an inode?

From linux-mag.com In the electronic pages of Linux Magazine, file systems are commonly discussed. It’s a fact! In these discussions you might see the term “inode” used in reference to a file system. Fairly often people ask the question, “what is an inode?” so that they can understand the discussion (remember, there is no such…


WP2Social Auto Publish Powered By : XYZScripts.com