View facebox.html
<!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> |
View gist:1926630
<?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 |
View gist:3880048
# memcached requires libevent | |
cd /usr/local/src | |
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
tar -xvzf libevent-2.0.17-stable.tar.gz | |
cd libevent-2.0.17-stable* | |
./configure | |
make | |
sudo make install | |
# Compile memcached utility |
View gist:4074061
# Compile PCRE - Perl Compatible Regular Expressions | |
cd /usr/local/src | |
curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.31.tar.gz | |
tar -xvzf pcre-8.31.tar.gz | |
cd pcre-8.31 | |
./configure | |
make | |
sudo make install | |
# Compile Autoconf |
View gist:4165602
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 |
View gist:4611642
cd /usr/local/src | |
curl -O http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.gz | |
tar -xzvf lynx2.8.7.tar.gz | |
cd lynx2-8-7 | |
./configure --mandir=/usr/share/man | |
make | |
sudo make install |
View gist:5306629
# 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 |
View gist:5348039
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 |
View wordpress-page-generation-stats.php
<?php | |
/** | |
* Display MySQL Query Count and Page Generation Time for Performance Profiling | |
* ------------------------------------------------------------------------------ | |
*/ | |
if ( ! function_exists( 'show_page_generation_stats' ) ) { | |
function show_page_generation_stats() { | |
if ( WP_DEBUG === true && current_user_can('administrator') ) { | |
global $wpdb; |
View gist:6585822
cd /usr/local/bin | |
sudo curl -Ol https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl | |
sudo chmod 755 mysqltuner.pl |
OlderNewer