Skip to content

Instantly share code, notes, and snippets.

@jjcarey
jjcarey / wp-start.sh
Created February 28, 2017 22:26 — forked from ethicka/wp-start.sh
WordPress Installation with the Roots/Sage Framework and VirtualHost Creation
#!/bin/bash -e
##
# WordPress Installation and VirtualHost Creation
#
# Description: Installs a WordPress website in the ~/Sites folder, creates a homepage,
# cleans up the WP install a bit, deletes the akismet and hello dolly plugins, creates the permalinks,
# clones the roots/sage theme framework to the theme folder, deletes all the other WP default themes,
# installs/runs npm and bower and runs gulp to create the initial assets, adds a custom gitignore file
# to /wp-content, installs the roots/soil plugin, creates a git repo in wp-content, saves the WordPress

Concrete5 Project Documentation

These instructions are for a concrete5 v5.7 project

Local Environment Assumptions

  • Your server name ends in .dev (e.g., spydertrap.dev)
  • You have the following installed:
  • Composer
@jjcarey
jjcarey / 00-SMACSS-README.md
Last active December 6, 2017 22:15
Scalable and Modular Architecture for CSS

Scalable and Modular Architecture for CSS

My Version of the popular CSS architecture.

  • Originally published: June 7, 2015
  • Revised date: April 21, 2016

Summary:

@jjcarey
jjcarey / Contract Killer 3.md
Created April 11, 2016 01:26 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

/////////////////////////////
// COUNT FOR SCSS SELECTOR //
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
@jjcarey
jjcarey / 01-README.md
Last active August 29, 2015 14:27 — forked from petemcw/01-README.md
Mac OS X LEMP Configuration

Mac OS X LEMP Configuration

This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.

Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.

Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup

Nginx