Skip to content

Instantly share code, notes, and snippets.

View belzaaron's full-sized avatar

Aaron Belz belzaaron

View GitHub Profile
alias editprofile="code ~/.zprofile"
alias rl="source ~/.zprofile"
alias c="clear"
alias ci="composer install"
alias cu="composer update"
alias cr="composer require"
alias cs="composer show"
alias art="php artisan"
@belzaaron
belzaaron / idx-monospace-dark.json
Created July 15, 2024 01:18
Tinkerwell IDX Monospace Dark; unofficial port from the unofficial port on https://github.com/keksiqc/monospace-theme
{
"base": "vs-dark",
"inherit": true,
"rules": [
{
"background": "171f2b",
"token": ""
},
{
"foreground": "7f8d9f",
@belzaaron
belzaaron / InSomeModelWithMedia.php
Last active February 25, 2022 22:10
This provides a model-level control for URL generator classes for spatie/laravel-medialibrary. See PR: https://github.com/spatie/laravel-medialibrary/pull/2809. Tested on: spatie/laravel-medialibrary version: 10.1.1
/**
* Get the classpath of the url generator used by the model.
*
* @return string
*/
public function getUrlGeneratorClass(): string
{
return \App\Services\SpatieMediaLibrary\SomeUrlGenerator::class;
}