Skip to content

Instantly share code, notes, and snippets.

View danieldevine's full-sized avatar
💭
I may be slow to respond.

Dan Devine danieldevine

💭
I may be slow to respond.
View GitHub Profile
@danieldevine
danieldevine / CustomWordPressValetDriver.php
Last active April 26, 2023 08:47
A custom driver to work with a nested directory structure
<?php
namespace Valet\Drivers\Custom;
use Valet\Drivers\ValetDriver;
class CustomWordPressValetDriver extends ValetDriver
{
/**
* Custom suffix for site path.
#########
# Colours
#########
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFha'
#########
#!/bin/bash -e
wpuser='cool_administrator'
password='bada$$pa$$word'
admin-email='you@you.biz
clear
echo "================================================================="
echo "Dan's Badass Headless WordPress Site Generator v1.0.0"
@danieldevine
danieldevine / snakelines.json
Created September 8, 2018 08:52
2112 lines of Whitesnake (JSON)
{
"whitesnakes": [{
"snakeline": "I don't go looking for trouble"
},
{
"snakeline": "It's always coming my way"
},
{
"snakeline": "But I've been looking for you"
},
@danieldevine
danieldevine / aphorisms.json
Last active November 30, 2021 01:51
All the 'wise sayings' from 'Book of Wise Sayings' by W. A. Clouston (1893) in JSON format for use and abuse.
{
"quotations": [
{
"attribution": "Bhāravi.",
"quote": "The enemies which rise within the body, hard to be overcome—thy evil passions—should manfully be fought: he who conquers these is equal to the conquerors of worlds."
},
{
"attribution": "Firdausī.",
"quote": "If passion gaineth the mastery over reason, the wise will not count thee amongst men."
},
@danieldevine
danieldevine / .bashrc
Last active November 5, 2016 12:59
Regular .bashrc (linux)
#########
# Aliases
#########
#saves wear on / key
alias www='cd /var/www'
#ls show hidden files. in colour
export LS_OPTIONS='--color=auto -a'
eval "`dircolors`"
@danieldevine
danieldevine / gruntfile.js
Last active March 9, 2016 03:46
Gruntfile for Shopify
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dev: {
files: {
'scss/global.css': 'scss/src/global.scss'
},
@danieldevine
danieldevine / image production gruntfile
Last active August 29, 2015 14:16
Gruntfile for image production.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
imagemin: {
dynamic: {
files: [{
expand: true,
cwd: 'img/raw',
(function() {
/* == GLOBAL DECLERATIONS == */
TouchMouseEvent = {
DOWN: "touchmousedown",
UP: "touchmouseup",
MOVE: "touchmousemove"
}
/* == EVENT LISTENERS == */