Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
danielwrobert / docker-compose.wordpress.coredev.yml
Last active December 9, 2016 14:26 — forked from dmsnell/docker-compose.wordpress.coredev.yml
A Docker container configuration for WordPress via Docker Compose.
version: '2'
services:
wordpress:
image: wordpress
ports:
- 8888:80
environment:
WORDPRESS_DB_PASSWORD: password
@danielwrobert
danielwrobert / wordpress-xml-splitter.py
Last active November 12, 2023 08:44
WordPress XML Splitter
'''
Created on May 8, 2010 by @anasimtiaz
Updated on May 28, 2016 by @danielwrobert
This is a "fork" of original script.
Original script URL: http://anasimtiaz.com/?p=51
'''
@danielwrobert
danielwrobert / learning-queue.md
Last active December 12, 2020 23:35
Learning Queue - my learning plan and checklist
@danielwrobert
danielwrobert / webpack.config.js
Last active February 1, 2022 10:18
Example Webpack Config File
const path = require( 'path' );
const webpack = require( 'webpack' );
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = ( env, options ) => {
return {
entry: './src/block.js',
output: {
path: path.resolve( __dirname, 'build' ),
@danielwrobert
danielwrobert / .gitignore
Created February 3, 2016 04:14
My general .gitignore file for most projects.
# Composer
vendor
composer.phar
# Sass
.sass-cache/
*.css.map
# Vim
# swap
@danielwrobert
danielwrobert / rsync-excludes.txt
Last active January 29, 2016 06:16
Some typical excludes for rsync deploys. Run with --exclude-from= flag.
.DS_Store
rsync-excludes.txt
error_log
node_modules
_resources
.git
.sass-cache

Faster Websites with Nginx

Course at SitePoint Premium URL: https://www.sitepoint.com/premium/courses/faster-websites-with-nginx-2757

Lesson 5 - Example: PHP with WordPress

This lesson will look at configuring Nginx with a PHP backend, running WordPress. Will show some advanced Nginx configuration examples, using the WP-SuperCache plugin.

Notes:

  • Install php5-fpm
@danielwrobert
danielwrobert / .editorconfig
Last active April 19, 2018 14:37
My personal preferences for my EditorConfig file when working on a WordPress project. I save these contents to a .editorconfig file in my project's root directory. If you're not familiar with EditorConfig, you should check it out, it's pretty awesome - http://editorconfig.org/
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8
@danielwrobert
danielwrobert / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@danielwrobert
danielwrobert / theme-checklist.sh
Last active August 29, 2015 14:19
Theme checklist grep script.
#!/bin/bash
echo "## No removing or modifying non-presentational hooks (ROW 59):"
echo "------------------------------------------------"
git grep -n "remove_action"
git grep -n "remove_filter"
echo " "
echo " "
echo "## No shortcodes are allowed (ROW 60):"