Skip to content

Instantly share code, notes, and snippets.

View allenmoore's full-sized avatar

Allen Moore allenmoore

View GitHub Profile
@allenmoore
allenmoore / WP CLI commands.sh
Last active December 30, 2016 13:49 — forked from joshlevinson/WP CLI commands.sh
Create new VVV sites with WP CLI + wildcard hosts
vagrant ssh
cd /srv/www/
mkdir site-name && cd site-name && touch vvv-hosts && echo "site-name.dev" >> vvv-hosts && touch wp-cli.yml && echo "path: htdocs" >> wp-cli.yml && mkdir htdocs && cd htdocs
wp core download
wp core config --dbname=site-name --dbuser=root --dbpass=root
wp db create
wp core install --url=site-name.dev --title=Site --admin_user=admin --admin_password=password --admin_email=admin@example.dev
@allenmoore
allenmoore / README.md
Last active April 16, 2019 22:12 — forked from jonathantneal/README.md
CSS Modules in PHP

CSS Modules lets you write and use simple class names rather than remembering and maintaining long unique class names for every component. CSS Modules mutates all of your classnames from each partials into new, completely unique classnames that will not conflict when they are bundled together into your main CSS file. Then, a JSON file is generated that maps the happy classnames from each file to the unique classname in the combined file. You load this map in PHP, and begin using the easy-to-remember classnames as you wish.