Skip to content

Instantly share code, notes, and snippets.

Developing workflows and solutions @Mixd

Ash Davies DrizzlyOwl

Developing workflows and solutions @Mixd
Block or report user

Report or block DrizzlyOwl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
DrizzlyOwl /
Created Aug 7, 2019 — forked from jaredatch/
Install MailHog with MAMP Pro

Install MailHog with MAMP Pro, using HomeBrew.


First let's make sure HB is updated. Open up terminal for the following steps.

$ brew update
DrizzlyOwl / functions.php
Last active Oct 25, 2018
Hook into Restrict Content Pro to fudge a fixed billing period in the future for Stripe Subscriptions
View functions.php
* Set the customer's subscription billing period in Stripe to the a predefined period
* @author Ash Davies
* @param integer $member_id
* @param RCP_Payment_Gateway_Stripe $gateway
* @return void
function __mixd_rcp_set_stripe_billing_period($member_id, $gateway)
DrizzlyOwl / FizzBuzz in SCSS.scss
Last active Mar 9, 2018
Generated by
View FizzBuzz in SCSS.scss
// ----
// 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"

Keybase proof

I hereby claim:

  • I am drizzlyowl on github.
  • I am drizzlyowl ( on keybase.
  • I have a public key ASAWR06KilncQvc-xv_imgXHLuXfHH9MzkBQQOCu63NnAQo

To claim this, I am signing this object:

#! /bin/bash
# Author: Ash Davies <>
# 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
#! /bin/bash
# A quick bash script to make it easier for non tech-savvy folks
# to create a vhost conf file and enable it for apache2.
# @author Ash Davies <>
# @version 1.0.0
asksure() {
DrizzlyOwl / admin.php
Last active Mar 10, 2017
View admin.php
* $. Remove & disable JSON API
function wpst_remove_json_api() {
* Remove API scripts from header/footer

Multiple MySQL Versions with Homebrew

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
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/ashleydavies/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See
View httpd-vhosts.conf
<Directory "/Users/ashleydavies/sites">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
<Virtualhost *:80>
VirtualDocumentRoot "/Users/ashleydavies/sites/_localhost"
UseCanonicalName Off
You can’t perform that action at this time.