This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# : | |
| :: I wonder who made Task Manager... | |
| @setlocal DisableDelayedExpansion | |
| @echo off | |
| echo "%*" | find /i "-el" >nul && set _elev=1 | |
| set _PSarg="""%~f0""" -el |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name the horse that stands in your way | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2026-03-01 | |
| // @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse | |
| // @author You | |
| // @match http://*.x.com/* | |
| // @match https://*.x.com/* | |
| // @match http://*.instagram.com/* | |
| // @match https://*.instagram.com/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ImageLightbox { | |
| constructor(options = {}) { | |
| // Configuration | |
| this.config = { | |
| autoMode: false, // Set to true for automatic mode, false for explicit only | |
| selectors: [ | |
| 'img.lightbox-trigger', | |
| 'img[data-lightbox]', | |
| 'img.lightbox-enabled' | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Route::match(['get', 'post'], '/upload-file', function (\Illuminate\Http\Request $request) { | |
| if ($request->isMethod('post')) { | |
| $request->validate([ | |
| 'file' => 'required|file|mimes:png,jpg,pdf,csv,txt|max:10240', | |
| ]); | |
| dump($request->file('file')); | |
| $path = $request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .fi-simple-main-ctn::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| opacity: 0.90; | |
| background-image: radial-gradient( | |
| circle at top, | |
| theme('colors.primary.300'), | |
| theme('colors.transparent'), | |
| theme('colors.transparent') 100% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Forms\Components; | |
| use Closure; | |
| use Filament\Forms\Components\Actions\Action; | |
| use Filament\Forms\Components\Field; | |
| class DropInAction extends Field | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Forms\Components; | |
| use Filament\Forms\Components\Group; | |
| class BlockSettings extends Group | |
| { | |
| protected string $view = 'filament.forms.components.block-settings'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Filament\Resources\Trip; | |
| //... | |
| class PlaceResource extends Resource | |
| { | |
| public static function table(Table $table): Table | |
| { | |
| return $table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Filament\Widgets; | |
| use Carbon\CarbonPeriod; | |
| use Filament\Widgets\DoughnutChartWidget; | |
| use Illuminate\Support\Carbon; | |
| use Illuminate\Support\Str; | |
| class DoughnutChart extends DoughnutChartWidget |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Website Backup Shell Script | |
| # by Andrew Currie (andrew@digitalpci.com) | |
| # | |
| # Performs a full backup of the specified database and document root. | |
| # Be sure to edit the configuration options at the beginning of the file to match your environment prior to executing. | |
| # The end result will be one TAR archive with the name 'website-backup-(current-datestamp)'. | |
| # The backup includes the entire document root directory and also a 'database.sql' file containing a MySQL dump of the database. | |
| # |
NewerOlder