Skip to content

Instantly share code, notes, and snippets.

View ezzatron's full-sized avatar

Erin ezzatron

View GitHub Profile
@ezzatron
ezzatron / goodbye-php.md
Created July 8, 2023 03:35
Saying goodbye to PHP

Saying goodbye to PHP

Hi, I'm Erin. If you're reading this you're probably using one or more of my open-source PHP repositories (most likely from the Eloquent GitHub organization). I'm writing this to let you know that I've decided to stop supporting all of my PHP packages. I will soon begin the process of deprecating them.

@ezzatron
ezzatron / mindmap.md
Created March 14, 2023 00:00
Mermaid mindmap
mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
 On effectivenessand features
@ezzatron
ezzatron / install-telepresence-version.sh
Last active November 16, 2022 01:11
Installer for older versions of Telepresence
#!/usr/bin/env bash
FORMULA="$1"
VERSION="$2"
if [[ -z "$FORMULA" || -z "$VERSION" ]]; then
>&2 echo "Usage: $0 <formula> <version>"
>&2 echo "Example: $0 telepresence-arm64 2.8.5"
exit 1
@ezzatron
ezzatron / example.md
Created April 14, 2020 07:26
Non-breaking hyphens in titles

Some‑thing

@ezzatron
ezzatron / with-hot-update-chunk-template.js
Created September 14, 2019 07:46
Demonstration of workbox-webpack-plugin v5 InjectManifest output with HotModuleReplacementPlugin
self.__WB_MANIFEST = [{"revision":"c5ad0f758cb33c2cbbdcc517448a9f76","url":"/A.css"},{"revision":"7b245aebbdd7895ab421d41e3b6f3d51","url":"/A.js"},{"revision":"696705ce52178c7fa07c27f84660a362","url":"/B.js"},{"revision":"588770cd8225077b1984f0aac2d6fb87","url":"/C.js"},{"revision":"640755b9813181ec9f03c1e06cee5805","url":"/ClientOnly.js"},{"revision":"832c5eb68f03fa8991dec0254c21d2be","url":"/D.js"},{"revision":"f5e08e84750125bcaf410dd3877708f9","url":"/Dashboard.js"},{"revision":"7680f1e15c0e1de9bb53a1c15cd78372","url":"/SignIn.css"},{"revision":"68c63b83560dd587e53482c0fc1a4a81","url":"/SignIn.js"},{"revision":"aa7ddf0fa7e92687a0c4472bbc509eb9","url":"/SignOut.js"},{"revision":"e60c6eb5ec5f2f167e488ca4d0b7f48c","url":"/app-shell.html"},{"revision":"1b8baaa899f82e52a79046268a196826","url":"/main.css"},{"revision":"85e812ab2c4d0b0b5974853264d403ce","url":"/main.js"},{"revision":"52428c867f36a00aab33683b0ffda3dd","url":"/workbox-window.js"}];/******/ (function(modules) { // webpackBootstrap
/******/ var hotA
@ezzatron
ezzatron / webpack.config.js
Created July 27, 2018 01:09
webpack-hot-client issue
/* eslint-disable import/no-commonjs */
const ExtractCssChunksPlugin = require('extract-css-chunks-webpack-plugin')
const HtmlPlugin = require('html-webpack-plugin')
const htmlPluginTemplate = require('html-webpack-template')
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const {resolve} = require('path')
module.exports = (_, {mode = 'development'} = {}) => {
const isProduction = mode === 'production'
@ezzatron
ezzatron / keybase.md
Created August 4, 2016 00:03
keybase.md

Keybase proof

I hereby claim:

  • I am ezzatron on github.
  • I am ezzatron (https://keybase.io/ezzatron) on keybase.
  • I have a public key whose fingerprint is CED4 F1B5 27FC 5D81 7B7E F2AD 03CF 7B8D E959 D7C3

To claim this, I am signing this object:

@ezzatron
ezzatron / proxy.php
Created May 9, 2016 05:59
PHP type-checking proxy
<?php
class TypeCheckingProxy
{
public function __construct($object)
{
$this->object = $object;
$this->class = get_class($object);
$reflector = new ReflectionObject($object);
@ezzatron
ezzatron / wildmatch.php
Last active August 29, 2015 14:15
Port of Git wildmatch to PHP
<?php
const WM_CASEFOLD = 1;
const WM_PATHNAME = 2;
const WM_ABORT_MALFORMED = 2;
const WM_NOMATCH = 1;
const WM_MATCH = 0;
const WM_ABORT_ALL = -1;
const WM_ABORT_TO_STARSTAR = -2;
@ezzatron
ezzatron / gist:1c9ce238bd7ef6a054b2
Created October 29, 2014 01:27
Test runner syntax ideas
<?php
/*
* This file is part of the Phony package.
*
* Copyright © 2014 Erin Millard
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/