Skip to content

Instantly share code, notes, and snippets.

View JoshuaBedford's full-sized avatar

Joshua Bedford JoshuaBedford

View GitHub Profile
@JoshuaBedford
JoshuaBedford / wordpress.lando.yml
Last active November 20, 2019 21:21
Lando WordPress Recipe
# Lando is configured based on ‘recipes’ as config files. Paste the content below into a file .lando.yml.
# This recipe installs a LAMP stack, the WPCLI, and Node/npm.
# Check out my Lando ZSH plugin for greater efficiency:
# URL: https://github.com/JoshuaBedford/lando-zsh
name: {{ project_name_here }}
# recipe can be 'wordpress' or 'laravel'
recipe: wordpress
config:
@JoshuaBedford
JoshuaBedford / whitelist-words.json
Created March 6, 2019 21:31
A JSON array of words that contain profanity and other such words that are normally prohibited. For use in filters to whitelist certain words that would otherwise be blocked.
[
"Cassandra",
]
@JoshuaBedford
JoshuaBedford / save-mail-locally.applescript
Created October 3, 2018 21:23
Save Apple Mail Inbox Locally after X Days
(*
Author: Joshua Bedford
Language: AppleScript
Reason: Working for a company where Exchange mail is deleted after x days, but need to keep mail longer locally.
Disclaimer: Based largely on Zettt's gist (https://gist.github.com/Zettt/6551639)
License:
MIT License
Copyright (c) 2018 Joshua Bedford
@JoshuaBedford
JoshuaBedford / callTimeDifference.js
Last active December 3, 2015 23:47
index.php calls callTimeDifference.js which calls timeDifference every 1 second to create a clock to track the time since a given date.
function callTimeDifference(todayDate, trackDate, typeOfDate){
setInterval(function(){timeDifference(todayDate,trackDate,typeOfDate);},1000);
var flag = true;
var difference = null;
var timer = null;
function timeDifference(today, dateToTrack, type){
if(flag){