Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
######################################################################################
######################################################################################
############### apmysqlbackup.sh ver. 0.11 ##########################
############### ##########################
############### made by Andrej Polic in April 2005 ##########################
############### You can use this script free ##########################
############### and freely distribute it. ##########################
############### This script is provided "as is" and ##########################
############### without any warranties. ##########################
@ground-creative
ground-creative / rsync-usb.sh
Created April 1, 2012 14:05
RSYNC AUOBACKUP TO USB DEVICE
#!/bin/bash
####### RSYNC AUOBACKUP TO USB DEVICE V0.5 ##########
####### Developed by Carlo Pietrobattista ###########
### CONFIG VARS #####################################
LOCK_FILE="/tmp/rsync-usb.pid" # the lock file name
MOUNT_DEV="/dev/sdh1" # mount device
MOUNT_PATH="/mnt/autobackup-usb" # mount point
BACKUP_DIR="/home/*" # backup directory
RSYNC_LOG_FILE="/var/log/rsync/usb_backup.log" # rsync log file
#####################################################
@ground-creative
ground-creative / smartToggle.js
Created April 1, 2012 14:01
Jquery smartToggle class
/** Jquery smartToggle class(object oriented) developed by Carlo Pietrobattista
* @version 0.5
*/
function smartToggle()
{
/** expand toggle html tags and change the link text(if needed), mandatory vars: hiddenId(the id to show or hide)
* @param hiddenId string the el id to show/hide
* @param numeric delay the delay for the toggle action
* @param type string use type if you need to change the link text if needed, types are: regular(change text before toggle),reverse(change text after toggle)