Skip to content

Instantly share code, notes, and snippets.

View gfucci's full-sized avatar
🎯
Focusing

Gabriel Fucci gfucci

🎯
Focusing
  • Redesul
  • Florianópolis
  • 03:18 (UTC -03:00)
View GitHub Profile
@gfucci
gfucci / pint.json
Last active August 2, 2026 19:09
Laravel pint JSON with all php risky rules and PSR12 preset
{
"preset": "psr12",
"rules": {
"class_attributes_separation": {
"elements": {
"const": "none",
"method": "one",
"property": "none",
"trait_import": "none",
"case": "none"
@gfucci
gfucci / DeleteFilesByExtensions.php
Last active July 20, 2024 20:37
Delete files recursively by extensions
<?php
// deletes all files with the chosen extensions. The script will run on all folders and subfolders starting from the folder where you ran the script (don't forget to make a backup first)
ini_set('memory_limit', -1);
$currentPath = getcwd();
$extensions = [
//put here extensions to delete
];