This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML View for Gmail | |
https://mail.google.com/mail/?ui=html&zy=h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir -p /home/databases | |
cd /home/databases | |
DATE=`date '+%a'|tr '[:lower:]' '[:upper:]'`; | |
mysqldump --routine -uUSERNAME -pPASSWORD DATABASE1 > ${DATE}-DATABASE1.dmp | |
mysqldump --routine -uUSERNAME -pPASSWORD DATABASE2 > ${DATE}-DATABASE2.dmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sitemapindex> | |
<sitemap> | |
<loc>http://domain.com/sitemap-01.xml</loc> | |
</sitemap> | |
</sitemapindex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$find = preg_quote('search-term-what-to-find'); | |
$dir='/home/user/public_html'; | |
chdir($dir); | |
$files=array(); | |
$files[] = 'file1.php'; | |
$files[] = 'file2.php'; | |
$files[] = 'path1/file3.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://wi-fizzle.com/downloads/base64.sql | |
Corrections at: http://stackoverflow.com/questions/358500/base64-encode-in-mysql | |
Urlencode/urldecode As MySQL Stored Functions | |
http://www.dzone.com/snippets/urlencodeurldecode-mysql | |
http://jeremythomerson.com/2013/05/30/urlencoder-function-for-mysql/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = '/home/USER/public_html'; | |
function resources($path) | |
{ | |
$resources = array( | |
'file' => $path, | |
'href' => array(), | |
'src' => array(), | |
'success' => false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('log_errors', 'On'); | |
ini_set('display_errors', 'On'); | |
ini_set('error_log', dirname(__FILE__).'/error_log'); | |
error_reporting(E_ALL|E_STRICT); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /PATH -type f -name "*.php" -size +50 > /tmp/large-scripts.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$find = preg_quote('search-term-what-to-find'); | |
$dir='/home/user/public_html'; | |
chdir($dir); | |
$files=array(); | |
$files[] = 'file1.php'; | |
$files[] = 'file2.php'; | |
$files[] = 'path1/file3.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT('DROP TRIGGER `', trigger_name, '`;') FROM information_schema.triggers WHERE trigger_schema = 'DATABASE_NAME'; |