Skip to content

Instantly share code, notes, and snippets.

View mattstauffer's full-sized avatar

Matt Stauffer mattstauffer

View GitHub Profile
@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",
@mattstauffer
mattstauffer / oauth-app-management.md
Created June 11, 2019 17:39
Where are all the oauth app configs for all the major services?
@mattstauffer
mattstauffer / navigation.php
Last active January 24, 2019 16:27
Possible structure for tailwind nav
<?php
return [
'Installation' => [
'Installation' => 'installation',
'Configuration' => 'configuration',
'Colors' => 'colors',
'Responsive Design' => 'responsive-design',
'Adding New Utilities' => 'adding-new-utilities',
'Extracting Components' => 'extracting-components',
@mattstauffer
mattstauffer / blog.md
Last active January 24, 2019 09:00
Hacktoberfest 2017 for Tighten

Hacktoberfest logo

Every year Digital Ocean runs Hacktoberfest, which is a fun program that rewards developers for making pull requests to open source software. This year you could get stickers and a free t-shirt for participating!

Looking for some code you can write on Laravel-related applications for Hacktoberfest? Here are a few issues we have open. :)

Collect

  • Test the automatic-split tester called "Collector" to see if we can move to doing automatic splits per #2

Symposium

@mattstauffer
mattstauffer / makepost.sh
Created September 5, 2017 01:02
My build script for creating a new Jigsaw post
#!/bin/bash
function slugify {
echo "$1" | iconv -t ascii//TRANSLIT | sed -E s/[^a-zA-Z0-9]+/-/g | sed -E s/^-+\|-+$//g | tr A-Z a-z
}
# -------------------------------
echo
echo Creating a new blog post.

Keybase proof

I hereby claim:

  • I am mattstauffer on github.
  • I am mattstauffer (https://keybase.io/mattstauffer) on keybase.
  • I have a public key whose fingerprint is AD6F 7CE7 553D A9C7 89A6 07C9 ED60 D8FD 9359 6537

To claim this, I am signing this object: