Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am andrewfleming on github.
  • I am ajfleming (https://keybase.io/ajfleming) on keybase.
  • I have a public key ASA003J7Y6kPrzXNoY6Gzyfm8csP7EiDld79iTpRUN44pAo

To claim this, I am signing this object:

@andrewfleming
andrewfleming / Makefile
Last active July 24, 2023 08:45
Combine Make and Lando to create a local WordPress environment
.PHONY: wp
wp:
curl -s https://gist.githubusercontent.com/andrewfleming/aff1bf78a63430245f6f854c93930f9a/raw/lando.base.yml > .lando.base.yml
printf 'name: %s' "$${PWD##*/}" > .lando.yml
lando start
lando installwp
.PHONY: reset
reset:
lando wp db reset --yes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" style="background:#1b2531!important;color:#1b2531" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width">
<title>My Basic Email Template Subject</title>
<style type="text/css">@media only screen{html{min-height:100%;background:#f3f3f3}}@media only screen and (max-width:596px){.small-float-center{margin:0 auto!important;float:none!important;text-align:center!important}}@media only screen and (max-width:596px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .columns .columns{padding-left:0!importan
@andrewfleming
andrewfleming / httpd-vhost.conf
Last active February 24, 2018 16:31
Generate new TLS/SSL certificates and keys and add them to your list of 'trusted certificates' in OS X Keychain
<VirtualHost *:443>
UseCanonicalName Off
DocumentRoot "/Users/fleming/Sites/example"
ServerName example.fleming
SSLEngine on
SSLCertificateFile "/Users/fleming/Sites/example/ssl.crt"
SSLCertificateKeyFile "/Users/fleming/Sites/example/ssl.key"
</VirtualHost>
@andrewfleming
andrewfleming / csso-debugging
Created November 14, 2017 01:08
Example output to help debug error
@charset "UTF-8";
/**
* Colours
*/
/**
* Font stacks
*/
/**
* Font sizes
*/
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-admob'.
> Could not resolve all dependencies for configuration ':react-native-admob:_debugPublishCopy'.
> Could not find com.android.support:support-core-ui:25.2.0.
Required by:
TennisAce:react-native-admob:unspecified
// See: http://24ways.org/2013/grunt-is-not-weird-and-hard/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: ['build/*']
}
{
"name": "biotext",
"description": "WordPress theme. Child theme of the Genesis Framework",
"private": true,
"license": "CC-BY-NC-4.0",
"devDependencies": {
"autoprefixer": "^6.7.7",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.1.0",
#!/bin/bash -e
admin_username='Your Name'
admin_email='you@example.com'
now="$(date +'%d%m%Y%H%M')"
clear
echo "================================================================="
echo "Awesome WordPress Installer!!"
<?php
require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
/**
* Call content filters for Pages
* @return void
*/
function prevision_page_content_filters() {
// You can add conditionals here if you want to limit where these filters are used