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 if(get_field('slideshow')): ?> | |
<script src="<?php bloginfo('template_directory') ?>/js/jquery.vegas-1.2.min.js"></script> | |
<script> | |
jQuery(document).ready(function ($) { | |
$.vegas('slideshow', { | |
step: 0, | |
delay: 5000, | |
backgrounds: [ | |
<?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
<?php | |
// Define Environment Variables | |
$environment = new stdClass(); | |
$environment->local = '/wp-config-local.php'; | |
$environment->staging = '/wp-config-staging.php'; | |
$environment->testing = '/wp-config-testing.php'; | |
// Dynamically Set Environment Constants | |
define( 'WP_ENV_LOCAL', file_exists( ABSPATH . $environment->local ) ); | |
define( 'WP_ENV_STAGING', file_exists( ABSPATH . $environment->staging ) ); |
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 | |
// Dynamically Set Environment Variables | |
$server[] = $_SERVER['HTTP_HOST']; | |
$server[] = $_SERVER['LOCAL_NAME']; | |
$environment->local[] = 'example.dev'; | |
$environment->staging[] = 'staging.example.com'; | |
if ( array_intersect( $environment->local, $server ) ) { |
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
$ ls -al /tmp/mysql.sock; ls -al /var/mysql/mysql.sock | |
lrwxr-xr-x 1 root wheel 21 Oct 12 13:45 /tmp/mysql.sock -> /var/mysql/mysql.sock | |
srwxrwxrwx 1 _mysql wheel 0 Oct 12 13:51 /var/mysql/mysql.sock | |
ls: /tmp/mysql.sock: No such file or directory | |
srwxrwxrwx 1 _mysql wheel 0 Oct 12 13:51 /var/mysql/mysql.sock |
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
$ xcode-select --install |
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
cd /usr/local/bin | |
sudo curl -Ol https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl | |
sudo chmod 755 mysqltuner.pl |
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
sudo php /usr/lib/php/install-pear-nozlib.phar | |
pear config-set php_ini /private/etc/php.ini | |
pecl config-set php_ini /private/etc/php.ini | |
sudo pear upgrade-all | |
sudo pecl install apc | |
sudo pecl install xdebug | |
# Install ApiGen | |
sudo pear install pear.apigen.org/apigen |
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
# Download PHP 5.3.15 Source | |
cd /usr/local/src | |
curl -L -O http://us.php.net/get/php-5.3.15.tar.gz/from/us1.php.net/mirror | |
tar -xzvf php-5.3.15.tar.gz | |
# Download libmcrypt | |
cd /usr/local/src | |
curl -O http://iweb.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz | |
tar -xzvf libmcrypt-2.5.8.tar.gz | |
cd libmcrypt-2.5.8 |
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
cd /usr/local/src | |
curl -O http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz | |
tar -xzvf wget-1.14.tar.gz | |
cd wget-1.14 | |
./configure --with-ssl=openssl | |
make | |
sudo make install |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" type="text/css" media="all" /> | |
<link rel="stylesheet" href="css/facebox.css" type="text/css" media="all" /> | |
</head> |