Skip to content

Instantly share code, notes, and snippets.

View leeovery's full-sized avatar
🎯
Focusing

Lee Overy leeovery

🎯
Focusing
View GitHub Profile
@leeovery
leeovery / disable-plugins-when-doing-local-dev.php
Created September 7, 2012 14:46 — forked from markjaquith/disable-plugins-when-doing-local-dev.php
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<meta name="description" content="This is just an example">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
</head>
<body data-modules="foobar, lorem/ipsum">
# Initial setup
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/develop
# Fix merge conflicts if any and commit
@leeovery
leeovery / Alert.vue
Created March 15, 2016 09:15 — forked from laracasts/Alert.vue
Alert .vue example.
<template>
<div class="Alert Alert--{{ type | capitalize }}">
<slot></slot>
</div>
</template>
<script>
export default {
props: {
type: {
@leeovery
leeovery / US State List
Created March 30, 2016 12:22 — forked from tvpmb/US State List
JSON Array with List of US States with 2-char ISO codes.
[
{"name":"Alabama","alpha-2":"AL"},
{"name":"Alaska","alpha-2":"AK"},
{"name":"Arizona","alpha-2":"AZ"},
{"name":"Arkansas","alpha-2":"AR"},
{"name":"California","alpha-2":"CA"},
{"name":"Colorado","alpha-2":"CO"},
{"name":"Connecticut","alpha-2":"CT"},
{"name":"Delaware","alpha-2":"DE"},
{"name":"District of Columbia","alpha-2":"DC"},
@leeovery
leeovery / states_hash.json
Created March 30, 2016 12:22 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@leeovery
leeovery / nginx.conf
Last active April 17, 2024 19:47
Modified Nginx configuration file for servers provisioned by Laravel Forge
# nginx Configuration File
# http://wiki.nginx.org/Configuration
# Run as a less privileged user for security reasons.
user forge;
# How many worker threads to run;
# "auto" sets it to the number of CPU cores available in the system, and
# offers the best performance. Don't set it higher than the number of CPU
# cores if changing this parameter.
@leeovery
leeovery / osx_automount_nfs.md
Created February 20, 2019 19:23 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

@leeovery
leeovery / px-rem-tw.csv
Created May 20, 2019 18:57 — forked from trevorgreenleaf/px-rem-tw.csv
PX to REM'S to TAILWIND CSS
PX REM TW
4 0.25 1
8 0.5 2
16 1 4
32 2 8
48 3 12
64 4 16
80 5 20
96 6 24
112 7 28
@leeovery
leeovery / laravel-airlock-nuxt-auth-strategy.js
Last active March 8, 2020 09:21
Laravel Airlock Nuxt Stategy
export default class AirlockScheme {
constructor(auth, options) {
this.$auth = auth;
this.name = options._name;
this.options = Object.assign({}, DEFAULTS, options);
}
mounted() {
this.$auth.ctx.app.$axios.defaults.withCredentials = true;