For homebrew version 0.9.5.
brew -v # => Homebrew 0.9.5
Install the current version of mysql.
# Install current mysql version
brew install mysql
<Directory "/Users/ashleydavies/sites"> | |
Options Indexes MultiViews FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
Require all granted | |
</Directory> | |
<Virtualhost *:80> | |
VirtualDocumentRoot "/Users/ashleydavies/sites/_localhost" | |
UseCanonicalName Off |
#!/bin/sh | |
echo "Installing xcode command line tools"; | |
sudo xcode-select --install; | |
echo "Installing Homebrew"; | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; | |
brew update; | |
brew doctor; |
<?php | |
/** | |
* $. Remove & disable JSON API | |
******************************************************************************/ | |
function wpst_remove_json_api() { | |
/** | |
* Remove API scripts from header/footer | |
*/ |
#! /bin/bash | |
# | |
# Author: Ash Davies <github.com/drizzlyowl> | |
# Requires: wp-cli, curl, python, sendmail | |
# Description: Checks through all vhost directories to determine whether WordPress is | |
# installed and whether the version is out of date and sends a summary email to | |
# a recipient | |
# | |
touch $HOME/wordpress-versions.tmp |
// ---- | |
// Sass (v3.4.21) | |
// ---- | |
@for $var from 1 through 100 { | |
.n { | |
@if ($var % 3) == 0 and ($var % 5) == 0 { | |
count: "fizzbuzz" | |
} @else if ($var % 3) == 0 { | |
count: "fizz" |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
# | |
# A quick bash script to make it easier for non tech-savvy folks | |
# to set up TLS for a Virtual Host | |
# | |
# @author Ash Davies <a.davies@mixd.co.uk> | |
# @version 1.0.0 | |
# | |
asksure() { |
#! /usr/bin/python | |
# Load libs | |
import os | |
import re | |
import argparse | |
# Register CLI args | |
parser = argparse.ArgumentParser( | |
description='Parse all your WordPress templates to determine which PHP components are not in use', |
#! /bin/bash | |
####################################################################### | |
## USAGE ## | |
####################################################################### | |
## To use these helper functions you first need to make the target ## | |
## environment available by defining the SSH Port number and the ## | |
## branch you wish to deploy from. ## | |
## Substitute 12345 with your port. ## | |
## ## | |
## $ export SSH_PORT=12345 ## |