I hereby claim:
- I am micalm on github.
- I am micalm (https://keybase.io/micalm) on keybase.
- I have a public key whose fingerprint is 9615 C3E4 BFAC F0DF 5763 57E4 E594 58D5 57BF 5E7F
To claim this, I am signing this object:
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; |
#!/bin/sh | |
DIR=/root/mysql-backups/ | |
DATESTAMP=$(date +%Y-%m-%d) | |
DB_USER=user | |
DB_PASS=password | |
find ${DIR} -type f -mtime +5 -exec rm -rf {} \; | |
DB_LIST=`mysql -u $DB_USER -p"$DB_PASS" -e'show databases;'` |
#!/usr/bin/php | |
<?php | |
error_reporting(0); | |
// Prosody log file path | |
$logFile = "/var/log/prosody/prosody.log"; | |
$debug = false; | |
// CakePHP database config | |
$db = array( | |
'driver' => 'mysql', |
I hereby claim:
To claim this, I am signing this object: