Skip to content

Instantly share code, notes, and snippets.

View shawnachieve's full-sized avatar

Shawn Smiley shawnachieve

View GitHub Profile
@shawnachieve
shawnachieve / .vagrant_aliases
Last active December 21, 2015 18:39
A set of aliases for common vagrant commands.
# Clone this script using:
# cd ~
# git clone git@gist.github.com:787a1175b114bd76be45.git .vagrant_aliases
#
# Add the following to your ~/.profile file:
# if [ -f ~/.vagrant_aliases/.vagrant_aliases ]; then
# source ~/.vagrant_aliases/.vagrant_aliases
# fi
# Custom Vagrant Aliases/Commands
@shawnachieve
shawnachieve / qd.sh
Last active December 5, 2016 19:37
Drush qd shell extension.
# Creates a quick drupal installation with pre-configured defaults.
# Syntax:
# qd [drupalversion:7|8] [projectname] [modulelist] [giturl]
qd() {
if [ "$#" -gt 4 ]; then
echo -ne "ERROR: Too many arguments specified. Make sure there are no spaces in the list of contrib modules.\n"
fi
if [ "$#" -lt 2 ] || [ "$#" -gt 4 ]; then
echo -ne "Creates a quick Drupal installation with pre-configured defaults.\n"
echo -ne "Syntax:\n"
@shawnachieve
shawnachieve / .ht_router.php
Last active March 14, 2016 21:23
Drupal router file for use with PHP's built-in web server (see: https://www.drupal.org/node/1543858)
<?php
/**
* @file
* Routing-script for the built-in PHP web server.
*
* The built-in webserver should only be used for development and testing as it
* has a number of limitations that makes running Drupal on it highly insecure
* and somewhat limited.
*
* In particular be aware that: