Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
danielwrobert / .prettierignore
Created April 19, 2018 14:45
My ignore file for Prettier - https://prettier.io/
*.json
README.md
@danielwrobert
danielwrobert / .editorconfig-alt
Last active April 19, 2018 14:40
My personal preferences for my EditorConfig file. 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/
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@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 / style-blog-cobaltish.css
Last active December 22, 2017 15:15
Alternative color pallets (style overrides) for Independent Publisher 2 theme.
.widget_recent_comments a, .widget_recent_entries a, body, button, input, select, textarea {
color: #F9FFEE;
}
.entry-author .author-title, .entry-title, .entry-title a, .entry-title a:visited, .site-posted-on strong, .site-title, .site-title a, .site-title a:visited, .entry-title a:hover, .site-title a:hover, h1, h2, h3, h4, h5, h6, .page-header:not(.page-header-light) h1, .comment .comment-meta .comment-author .fn {
color: #EFBB35;
}
.site-title a {
color: #EFBB35 !important;
}
.site-description, .social-navigation li a, .site-header .menu-toggle {
@danielwrobert
danielwrobert / .gitattributes-line-endings
Last active March 7, 2017 15:00
Git attributes to deal with differences in line endings
## Deal with differences in line endings:
## See https://help.github.com/articles/dealing-with-line-endings/
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
@danielwrobert
danielwrobert / gulpfile.js
Last active January 20, 2017 09:34
My gulpfile.js, configured as a great starting point for most of the projects I've set up lately.
// Include Gulp
var gulp = require( 'gulp' );
// Include Plugins
var sass = require( 'gulp-ruby-sass' ),
autoprefixer = require( 'gulp-autoprefixer' ),
minifycss = require( 'gulp-minify-css' ),
imagemin = require( 'gulp-imagemin' ),
jshint = require( 'gulp-jshint' ),
concat = require( 'gulp-concat' ),
@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

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 / .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