Skip to content

Instantly share code, notes, and snippets.

View mattstauffer's full-sized avatar

Matt Stauffer mattstauffer

View GitHub Profile
@mattstauffer
mattstauffer / opengraph.html
Created August 2, 2024 20:48
Basic OpenGraph tags template
<meta property="og:title" content="Team">
<meta property="og:description" content="Tighten is a software development firm specializing in Laravel, Vue.js, React, and hybrid mobile development.">
<meta property="og:image" content="https://tighten.com/assets/images/tighten-com-og-cover.png">
<meta property="og:url" content="https://tighten.com/team/">
<meta property="og:site_name" content="Tighten">
@mattstauffer
mattstauffer / deploy.sh
Last active August 2, 2024 00:09
Tighten's Default Forge Deploy Script
cd $FORGE_SITE_PATH
# Clean production files
git reset --hard && git clean -df
git pull origin $FORGE_SITE_BRANCH
# Composer install & Restart PHP
$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist --optimize-autoloader
( flock -w 10 9 || exit 1
echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock
@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