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 / machine.js
Last active July 25, 2020 10:18
Generated by XState Viz: https://xstate.js.org/viz
const messagingMachine = Machine({
id: 'messaging',
initial: 'idle',
context: {
//
},
// either sending messages, receiving messages, or neither.
// can send and receive at same time.
type: 'parallel',
states: {
@leeovery
leeovery / machine.js
Last active July 25, 2020 10:14
Generated by XState Viz: https://xstate.js.org/viz
const yapsMachine = Machine({
id: 'yaps',
initial: 'loading',
context: {
User: {},
yaps: null,
Yap: null,
},
states: {
loading: {
@leeovery
leeovery / machine.js
Last active August 1, 2020 16:55
Generated by XState Viz: https://xstate.js.org/viz
const conversationMachine = Machine({
id: 'ConversationMachine',
initial: 'idle',
context: {
Yap: undefined,
User: undefined,
},
// either sending messages, receiving messages, or neither.
// can send and receive at same time.
<?php /** @noinspection PhpUndefinedMethodInspection */
namespace App\Console\Commands;
use Altek\Accountant\Context;
use Altek\Accountant\Notary;
use App\Models\Audit;
use App\Models\Ledger;
use Illuminate\Console\Command;
@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;
@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 / 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 / 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 / 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 / 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"},