Skip to content

Instantly share code, notes, and snippets.

View saade's full-sized avatar
🦒
FilamentPHP evangelist

Guilherme Saade saade

🦒
FilamentPHP evangelist
View GitHub Profile
@saade
saade / FilamentServiceProvider.php
Last active April 13, 2025 16:32
My Filament Defaults
<?php
namespace App\Providers;
use Filament\Actions;
use Filament\Forms;
use Filament\Infolists;
use Filament\Notifications\Notification;
use Filament\Pages;
use Filament\Support\Enums\MaxWidth;
@saade
saade / vapor.Dockerfile
Created May 28, 2024 01:52 — forked from mateusjatenee/vapor.Dockerfile
Vapor Dockerfile to install Ghostscript and Imagick while the PECL package is broken
FROM laravelphp/vapor:php83
ARG IMAGICK_VERSION=3.7.0
RUN apk --update add \
ghostscript && \
rm /var/cache/apk/*
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \
&& tar --strip-components=1 -xf /tmp/imagick.tar.gz \
@mateusjatenee
mateusjatenee / vapor.Dockerfile
Created April 28, 2024 20:04
Vapor Dockerfile to install Ghostscript and Imagick while the PECL package is broken
FROM laravelphp/vapor:php83
ARG IMAGICK_VERSION=3.7.0
RUN apk --update add \
ghostscript && \
rm /var/cache/apk/*
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \
&& tar --strip-components=1 -xf /tmp/imagick.tar.gz \
@AAbosham
AAbosham / FilamentCardTableLayout.php
Last active November 20, 2024 06:58
Filament Card Table Layout
<?php
namespace App\Filament\Resources\Trip;
//...
class PlaceResource extends Resource
{
public static function table(Table $table): Table
{
return $table
@mpociot
mpociot / README.md
Last active April 5, 2025 13:09
A Scriptable widget to show the upcoming Laracon talks

Laracon Scriptable Widget

Usage

  1. Install and download the free Scriptable app on your iOS device.
  2. Inside the app, press the "Plus" icon to create a new script
  3. Paste the content of the JS file into the script
  4. Place a Scriptable widget on your home screen
@nevack
nevack / archived.md
Last active March 3, 2025 16:21
[ARCHIVED] Fix for CSR Dongle 0a12:0001 ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

This gist is currenctly archived.

Please refer to previous revisions if you know what to do.

The patch proposed was merged into kernel in 5.8 release, but no longer working as of linux 5.11

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 21, 2025 07:39
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE