Skip to content

Instantly share code, notes, and snippets.

View snipe's full-sized avatar
🎯
Focusing

snipe snipe

🎯
Focusing
View GitHub Profile
@tabacitu
tabacitu / gist:dbcfd71375e72c857474
Last active April 20, 2020 09:05
Tabacitu Laravel Package Service Provider boilerplate code
<?php
namespace League\Skeleton;
use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\Router;
class SkeletonServiceProvider extends ServiceProvider
{
/**
@CatoTH
CatoTH / HTMLValidator.php
Last active May 24, 2017 07:52
A helper class for Codeception that allows automated HTML5 Validation using the Nu Html Checker during acceptance testing. It uses local binaries and can therefore be run offline.
<?php
/**
* A helper class for Codeception (http://codeception.com/) that allows automated HTML5 Validation
* using the Nu Html Checker (http://validator.github.io/validator/) during acceptance testing.
* It uses local binaries and can therefore be run offline.
*
*
* Requirements:
* =============
@graceavery
graceavery / harryPotterAliases
Last active September 20, 2024 22:13
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
@TvL2386
TvL2386 / scheduler.php
Last active January 8, 2018 04:53
my scheduler
$ php artisan schedule:daemon
[2018-01-07 12:11:24] Starting schedule:daemon
[2018-01-07 12:11:24] Waiting for next minute
[2018-01-07 12:12:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:13:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:14:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:15:00] running main loop
@atomjoy
atomjoy / ResizeImage-InterventionImage-v3-Laravel.md
Last active March 31, 2025 10:18
Upload, Resize and Save images with Intervention Image v3 in Laravel Storage. Test UploadedFile::fake() with real image file.

Resize images with Intervention Image v3 in Laravel Storage

Upload, Resize and Save images with Intervention Image v3 in Laravel Storage. Test UploadedFile::fake() with real image file.

Upload form

<form action="/upload/avatar" method="post" enctype="multipart/form-data">
	@csrf
	<label>Image</label>