Security fix for the DNS infrastructure to hide the the sensible information about the version and potential security critical bugs.
Archives for July 2011
Remove logs older than X days
The simplest way to remove files older than $NUMBER of days..
Dry run (files will be NOT deleted, you will see a list with files older than 100 days)
1 | find -mtime +100 | less |
Another dry run, see what would be delete:
1 2 3 | find -mtime +600 | xargs echo rm rm /var/log/squid3/access.log.0 rm /var/log/squid3/access.log.2 |
Finally if you decided to remove the files – the final command to delete them:
1 | find -mtime +600 | xargs rm |
Getting started with arduino
Some weeks ago I bought a really cool book – “Getting Started with Arduino”, which was written by the co-founder of Arduino Massimo Banzi.
This little booklet offers a thorough introduction to the [Read more…]
Apache short paths
A little trick to simplify your apache virtual hosts configuration, instead of full paths you can use some predefined variables like the directory of apache logs or the configuration directory.
${APACHE_LOG_DIR} is for /var/log/apache2
1 2 | ErrorLog ${APACHE_LOG_DIR}/access.log CustomLog ${APACHE_LOG_DIR}/error.log |
$APACHE_CONFDIR is for /etc/apache2
1 | $APACHE_CONFDIR/mods-available |
Rsync Server
Another different method to create your backups over network, a client data establish a connection to a rsync daemon server.
I describe a simple method without authentication (trusted LAN). [Read more…]