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
SELECT ID, comment_status, ping_status, post_type FROM wp_posts WHERE post_type IN ('post','page'); | |
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed' WHERE post_type IN ('post','page'); |
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
DISABLE STRICT HOST KEY CHECKING | |
============ | |
Open or create this file: ~/.ssh/config | |
Add this to the file, where * is a domain you trust | |
----------- | |
Host * | |
StrictHostKeyChecking no | |
Then run this for "security": sudo chmod 400 ~/.ssh/config |
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
gf_ten | |
gf_twenty | |
gf_twentyfive | |
gf_thirty | |
gf_thirtythree | |
gf_forty | |
gf_fifty | |
gf_sixty | |
gf_sixtysix | |
gf_seventy |
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
// ## Globals | |
var argv = require('minimist')(process.argv.slice(2)); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
var changed = require('gulp-changed'); | |
var concat = require('gulp-concat'); | |
var flatten = require('gulp-flatten'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var imagemin = require('gulp-imagemin'); |
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
"devDependencies": { | |
"asset-builder": "^1.1.0", | |
"browser-sync": "^2.8.2", | |
"del": "^1.2.1", | |
"gulp": "^3.9.0", | |
"gulp-autoprefixer": "^2.3.1", | |
"gulp-changed": "^1.3.0", | |
"gulp-concat": "^2.6.0", | |
"gulp-cssnano": "^2.1.0", | |
"gulp-flatten": "0.1.1", |
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 | |
/** | |
* The base configuration for WordPress | |
* | |
* The wp-config.php creation script uses this file during the | |
* installation. You don't have to use the web site, you can | |
* copy this file to "wp-config.php" and fill in the values. | |
* | |
* This file contains the following configurations: | |
* |
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
// Redirect to SSL always | |
if ( ($_SERVER['PANTHEON_ENVIRONMENT'] === 'live') && (php_sapi_name() != "cli")) { | |
if ($_SERVER['HTTP_HOST'] != '{sitename}' || !isset($_SERVER['HTTP_USER_AGENT_HTTPS']) || $_SERVER['HTTP_USER_AGENT_HTTPS'] != 'ON' ) { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: https://{sitename}'. $_SERVER['REQUEST_URI']); | |
exit(); | |
} | |
} | |
/** A couple extra tweaks to help things run well on Pantheon. **/ | |
if (isset($_SERVER['HTTP_HOST'])) { |
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
var gulp = require('gulp'), | |
zip = require('gulp-zip'), | |
pkg = require('./package.json'); | |
var zipDirs = [ | |
'*.*', | |
'foldertoinclude/**', | |
'!filetobeignored.txt' | |
]; |