Skip to content

Instantly share code, notes, and snippets.

View DrizzlyOwl's full-sized avatar

Ash Davies DrizzlyOwl

View GitHub Profile
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
<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
@DrizzlyOwl
DrizzlyOwl / .zshrc
Last active October 26, 2022 10:52
# Path to oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="af-magic"
# jbergantine is like toothpaste = good
# eastwood is nice and clean
# flazz is good
# nicoulaj is also good
# steeef is good
# half-life is good

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

@DrizzlyOwl
DrizzlyOwl / admin.php
Last active March 10, 2017 11:18
WP REST API Disable
<?php
/**
* $. Remove & disable JSON API
******************************************************************************/
function wpst_remove_json_api() {
/**
* Remove API scripts from header/footer
*/
#! /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 <a.davies@mixd.co.uk>
# @version 1.1.0
#
asksure() {
#! /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

Keybase proof

I hereby claim:

  • I am drizzlyowl on github.
  • I am drizzlyowl (https://keybase.io/drizzlyowl) on keybase.
  • I have a public key ASAWR06KilncQvc-xv_imgXHLuXfHH9MzkBQQOCu63NnAQo

To claim this, I am signing this object:

@DrizzlyOwl
DrizzlyOwl / FizzBuzz in SCSS.scss
Last active March 9, 2018 10:00
Generated by SassMeister.com.
// ----
// 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"
#! /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() {