Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mattstauffer's full-sized avatar

Matt Stauffer mattstauffer

View GitHub Profile
@mattstauffer
mattstauffer / debug.md
Created February 24, 2023 16:14
Debugging Laravel Valet errors

Here are some examples of errors I've been able to introduce into my Laravel Valet app, and how I fixed the:

502 Bad Gateway

  • You can see here that it means Nginx can't reach PHP: laravel/valet#717 (comment)
  • Solution: valet restart; if that doesn't work, try switching PHP versions: valet use php@8.0

Todo....

@mattstauffer
mattstauffer / articles-and-projects.md
Last active October 26, 2021 07:29
SOL articles and projects

Tutorials

Tools to clone and use

@mattstauffer
mattstauffer / 0. Getting Started With Solana.md
Created September 20, 2021 20:47
Getting started with Solana

Welcome! This is my best, simple, introduction for how to buy Solana, and, if you want, also to buy NFTs using it.

@mattstauffer
mattstauffer / class-order.md
Created September 14, 2020 21:55
Tighten Handbook Class Order

Extracted for the benefit of non-Tightenites.


Class "things" should be ordered as follows:

  1. Traits
  2. Statics properties
  3. Constants
  4. Instance properties
@mattstauffer
mattstauffer / info.md
Created July 6, 2020 15:21
Simple BASH Xdebug toggler

Written by Matt Stauffer

Note: This expects that you've enabled Xdebug in a specific file: /usr/local/php/X.x/conf.d/ext-xdebug.ini.

Installation

Add this function to your .zshrc or similar file.

Usage

On the command line, type xdebug and hit enter. This will toggle whether or not Xdebug is running.

Inspiration

@mattstauffer
mattstauffer / Kids Books with Black Protagonists.md
Last active June 11, 2020 21:08
Kids' books with Black protagonists

Note: Most of these are applicable to the ages older than I have listed, but I've put them where they were when my kids first started really enjoying them.

Infants (0-2ish?)

  • Shades of People
  • Peekaboo Morning and Peekaboo Bedtime

Really, anything in the "toddlers" section will be fine for these kids. But there aren't a ton of baby-focused books I know.

Toddlers (3-4 or 3-5ish?)

  • Sulwe
@mattstauffer
mattstauffer / example.html
Created March 3, 2020 15:46
Example of logging Laravel Livewiure component state
<script src="{{ asset('js/app.js') }}"></script>
<script>
let logComponentsData = function () {
window.livewire.components.components().forEach(component => {
console.log(component.name);
console.log(component.data);
});
};
document.addEventListener("livewire:load", function(event) {
@mattstauffer
mattstauffer / 24days-theme-modification.css
Created November 13, 2019 21:43
Modification to the theme 24daysindecember.net is using to make it more accessible
.entry-meta {
color: #716868;
}
.entry-meta a {
color: #716868;
}
/* Page title */
@mattstauffer
mattstauffer / locales.json
Created November 8, 2019 21:09
A listing of the locales available on my Mac computer as of 2019-11-08
[
"af",
"af_NA",
"af_ZA",
"agq",
"agq_CM",
"ak",
"ak_GH",
"am",
"am_ET",