Skip to content

Instantly share code, notes, and snippets.

View johnReeve's full-sized avatar

John Reeve johnReeve

View GitHub Profile
SELECT
table_schema as `Database`,
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
ORDER BY (data_length + index_length) DESC
#!/bin/bash
INSTALL=$1
ssh $INSTALL@$INSTALL.ssh.wpengine.net%
// Import CSS.
import './style.scss';
import './editor.scss';
import {List_Item, List_Item_Edit} from './list_item.js';
const {__} = wp.i18n; // Import __() from wp.i18n
const {registerBlockType} = wp.blocks;
const {Component} = wp.element;
const {
@johnReeve
johnReeve / sample_gulpfile.js
Created December 27, 2018 18:17
A sample gulpfile and package.json for wordpress themes
var CONFIG = {
PROJECT_URL: 'https://nib.local',
SOURCE: {
scripts: 'source/js/**/*.js',
styles: 'source/scss/**/*.scss',
images: 'source/images/*',
php: '**/*.php'
},