May 2010
Simple Apache / MySql Backup Script
boz — Sat, 05/22/2010 - 14:26
Here is a simple script for backing up your local server settings and databases. Replace "/media/storage/_backup" with your destination directory.
cp /etc/hosts /media/storage/_backup/hosts cp -r /etc/apache2/sites-available /media/storage/_backup/sites-avialable mysqldump -u root -psecret --all-databases > /media/storage/_backup/backup.sql
Image Security Made Simple With jQuery
boz — Sat, 05/22/2010 - 15:30
$(document).ready(function(){
$("img").bind("contextmenu",function(){ return false; });
});
This simple piece of code prevents the right click menu from opening on images.
