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 | |
echo 'This has been customized!!!'; | |
// Perform post-install customizations | |
if ( function_exists( 'add_action' ) ){ | |
add_action( 'wp_mail_content_type' , customize_install ); | |
function customize_install(){ | |
// Switch themes | |
switch_theme('twentytwelve'); |
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
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
# wordpress specific | |
wp-config.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
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
# wordpress specific | |
wp-config.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
Macbook Pro bluetooth connection to my Sony CMT-BX50BT is rubbish - constantly cutting out, changing tone (flat to sharp or vice versa) and dropping connection. Currently sitting 4-5 metres away from the Macbook Pro. | |
Playing with bitbool settings under Bluetooth Explorer (part of Xtools) the following figures seem to be stable at the moment: | |
Allow Dynamic Bitpools - yes | |
Current / initial bitpool - 35 | |
Minimum bitpool - 35 (previously 25) | |
Maxium bitpool - 40 |
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
<!-- SlidesJS Required: Initialize SlidesJS with a jQuery doc ready --> | |
<script> | |
jQuery(function() { | |
jQuery('#slides').slidesjs({ | |
width: 960, | |
height: 370, | |
navigation: { | |
active: false, | |
effect: "fade" | |
}, |
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
# do not allow .git version control files to be issued | |
<Directorymatch "^/.*/\.git+/"> | |
Order deny,allow | |
Deny from all | |
</Directorymatch> | |
<Files ~ "^\.git"> | |
Order allow,deny | |
Deny from all | |
</Files> |
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/bash | |
BACKUP_DIR="/home/user/backup/" | |
DB_NAME="database_name" | |
DB_USER="database_user" | |
DB_PASS="database_password" | |
BUCKET_NAME="sqls3.bucketname" | |
# Back up the mysql database | |
# Set a symlink to the latest version of the db | |
# Push the latest version to Amazon S3 |
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 | |
// Warning: this will overwrite every post in your database | |
// BACKUP FIRST! | |
clean_post_content(); | |
function clean_post_content() { | |
$posts = get_posts(array( | |
'post_type' => array('post'), // or page, or cpt | |
'post_status' => 'publish', // or any, draft, etc |
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/bash | |
# Finds WP installs and displays version numbers in current directory, or directory specified by -d <path> | |
# Very rough - needs tidy up and improvement | |
# Would be cool if it could look up latest version and compare any installs found to show only old installs | |
function usage | |
{ | |
echo "usage: locate_old_wp_versions.sh [-d | --dir] [-h | --help]" | |
} |
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
To set up MySQL backups we need to: | |
1) open up port 3360 in Config Services Firewall but only for the specified remote IP Address | |
See: http://crybit.com/enable-remote-mysql-csf/ | |
Step I : Enable the port 3306 only for the specific IP address: | |
This can be done in the CSF configuration file ‘/etc/csf/csf.allow‘ | |
# vi /etc/csf/csf.allow |
OlderNewer