View mysql_backup.sh #!/bin/bash prefixe=backup suffixe=$(date +%Y%m%d) filename=$prefixe$suffixe.sql host=host database=database user=user characterSet=UTF8 mysqldump –skip-comments \ –complete-insert \ –default-character-set=$characterSet \ –no-create-info \ –skip-add-locks \ –skip-opt \ –host $host...Read More
View onClick event on does not fire in Internet Explorer Remove the events from the options, use an event directly on the select instead. function myfunc(value) { alert(value); } … <select onchange=“myfunc(this.options.value)”> ...Read More
View VBScript : How to delete a Windows’ registry key and all its subkeys Option Explicit Sub DeleteRegKeyAndSubKeys(strRegTree, strKeyPath) 'strRegTree = "HKEY_CLASSES_ROOT" ' "HKEY_CURRENT_USER" ' "HKEY_LOCAL_MACHINE" ' "HKEY_USERS" ' "HKEY_CURRENT_CONFIG" 'strKeyPath is the registry key to delete. Example...Read More
View Renaming a set of files # rename all .jpeg files to .jpg for file in *.jpeg; do mv $file ${file%.jpeg}.jpg; done # make all the files in the current...Read More