This file contains hidden or 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
AddType image/svg+xml .svg .svgz | |
AddEncoding .gzip .svgz | |
AddType video/ogg .ogv | |
AddType video/mp4 .mp4 | |
AddType video/webm .webm | |
AddType audio/mpeg .mp3 | |
AddType audio/ogg .ogg | |
AddType audio/mp4 .m4a |
This file contains hidden or 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 WP db and site files, takes one argument (name of document root) | |
# name of directory to backup (public_html, httpdocs etc) | |
dir=$1 | |
cd /path/to/$dir | |
# get the db details | |
echo "Enter the db username:" | |
read dbusername |
This file contains hidden or 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 | |
# Install WordPress and Zurb Foundation | |
# Usage: wpbase <dirname> <themename> | |
# Installs into ~/$local/$dir | |
dir=$1 | |
theme=$2 | |
# Define local server dir | |
local="www" |
This file contains hidden or 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 | |
if ( $_SERVER['SERVER_NAME'] == 'ubuntulocal.dev') : | |
define('WP_ENV', 'dev'); | |
else : | |
define('WP_ENV', 'prod'); | |
endif; | |
if (WP_ENV == 'dev') : | |
define("WP_HOME","http://".$_SERVER['HTTP_HOST']."/"."%%INSTALL_DIR%%"); | |
define("WP_SITEURL","http://".$_SERVER['HTTP_HOST']."/"."%%INSTALL_DIR%%"); | |
define('DB_NAME', 'DEV_DBNAME'); |
NewerOlder