Skip to content

Instantly share code, notes, and snippets.

View benfurfie's full-sized avatar

Ben Furfie benfurfie

  • Netnak
  • Oxton, Greater Liverpool, UK
View GitHub Profile
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@Chrisedmo
Chrisedmo / Craft3ValetDriver.php
Created February 1, 2017 10:29
Craft 3 Composer Install Valet Driver
<?php
class Craft3ValetDriver extends ValetDriver
/* https://github.com/laravel/valet/blob/master/cli/drivers/CraftValetDriver.php */
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
@philipboomy
philipboomy / webpack.mix.js
Created May 1, 2018 15:10 — forked from gmcz/webpack.mix.js
Webpack config for Statamic, Tailwind CSS, and PurgeCSS
const {mix} = require('laravel-mix');
const tailwindcss = require('tailwindcss');
const glob = require('glob-all');
const PurgecssPlugin = require('purgecss-webpack-plugin');
mix
.js('js/src/theme-name.js', 'js/theme-name.js')
.sass('sass/theme-name.scss', 'css')
.options({
processCssUrls: false,
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active November 19, 2024 06:01 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@johnfmorton
johnfmorton / webpack.mix.js
Created August 1, 2018 14:06
A WIP laravel mix workflow
let mix = require('laravel-mix');
let precss = require("precss");
let tailwindcss = require("tailwindcss");
require('laravel-mix-purgecss');
require('laravel-mix-criticalcss');
class TailwindExtractor {
static extract(content) {
return content.match(/[A-z0-9-:\/]+/g) || [];