Finishing this guide you'll get:
- A running WordPress installation
- Nginx proxy with PHP and Fast CGI
- MySQL server accessible with phpMyAdmin
Specification of latest running installation:
- Date: 03.03.2014
<?php | |
$last_changed = wp_cache_get( 'last_changed', 'posts' ); | |
if ( ! $last_changed ) { | |
$last_changed = microtime(); | |
wp_cache_set( 'last_changed', $last_changed, 'posts' ); | |
} | |
global $wpdb; |
Finishing this guide you'll get:
Specification of latest running installation:
<?php | |
# Load slim WP | |
define( 'WP_USE_THEMES', false ); | |
require( './wp-load.php' ); | |
# http://phpexcel.codeplex.com/ | |
require_once dirname(__FILE__) . '/Classes/PHPExcel.php'; | |
global $wpdb; | |
$query = "SELECT * FROM $wpdb->comments |
Download hMailServer from here: http://www.hmailserver.com/index.php?page=background_download_file&downloadid=207.
# | |
# MIGRATE MySQL4 DATABASES TO MySQL5 - Steps for dumping and converting | |
# | |
# Uses mysqldump and patches output to be compatible with MySQL 5.5+ (? - no sure | |
# at which specific release of MySQL 5 the old style syntax support ended). | |
# | |
# Conversion is most likely incomplete. It does some essential converting where | |
# I regularly experienced problems during migration. | |
# | |
# Use on own risk, always try with test databases first. No warranty at all! |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
(function($,sr){ | |
// debouncing function from John Hann | |
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced () { | |
var obj = this, args = arguments; | |
function delayed () { |
<?php | |
// REQUIRED PARAMETERS | |
$status = 'http://www.mylink.com'; | |
$email = 'your@email.com'; | |
$pass = 'yourpassw0rd'; |
#gradient { | |
.vertical(@startColor: #555, @endColor: #333, @colorStop: 100%) { | |
background-color: mix(@startColor, @endColor, 60%); | |
background-image: -moz-linear-gradient(top, @startColor, @endColor @colorStop); // FF 3.6+ | |
background-image: -ms-linear-gradient(top, @startColor, @endColor @colorStop); // IE10 | |
background-image: -webkit-gradient(linear, 0 0, 0 @colorStop, from(@startColor), to(@endColor)); // Android 2.3, Safari 4+, Chrome 2+ | |
background-image: -webkit-linear-gradient(top, @startColor, @endColor @colorStop); // Safari 5.1+, Chrome 10+ | |
background-image: -o-linear-gradient(top, @startColor, @endColor @colorStop); // Opera 11.10 | |
background-image: linear-gradient(top, @startColor, @endColor @colorStop); // The standard | |
} |