Skip to content

Instantly share code, notes, and snippets.

@PiranhaGeorge
PiranhaGeorge / xml-fix.sh
Created September 3, 2024 11:04
Patch older versions of PHP to fix libxml2 issue
#!/usr/bin/env bash
# https://github.com/php/php-src/issues/12702
# https://github.com/php/php-src/commit/8a95e616b91ac0eeedba90a61e36e652919763f2
# https://github.com/php/php-src/commit/0a39890c967aa57225bb6bdf4821aff7a3a3c082
wget https://github.com/php/php-src/commit/8a95e616b91ac0eeedba90a61e36e652919763f2.patch
wget https://github.com/php/php-src/commit/0a39890c967aa57225bb6bdf4821aff7a3a3c082.patch
patch -p1 < 8a95e616b91ac0eeedba90a61e36e652919763f2.patch
@PiranhaGeorge
PiranhaGeorge / ContentGenerator.php
Created July 23, 2024 18:36
OpenAI gpt-5.3-turbo content generator Livewire component
<?php
declare(strict_types=1);
namespace App\Livewire\Tenant\Manage;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Log;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Validate;
@PiranhaGeorge
PiranhaGeorge / Login.php
Created July 23, 2024 18:26
Laravel login Livewire component
<?php
declare(strict_types=1);
namespace App\Livewire\Tenant\Checkout;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Support\Facades\Auth;
use Livewire\Attributes\Validate;
@PiranhaGeorge
PiranhaGeorge / Quill.php
Created July 23, 2024 16:43
Quill editor Livewire component
<?php
declare(strict_types=1);
namespace App\Livewire;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Str;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Modelable;
@PiranhaGeorge
PiranhaGeorge / Ace.php
Created July 23, 2024 16:36
Ace editor Livewire component
<?php
declare(strict_types=1);
namespace App\Livewire;
use Illuminate\Contracts\View\View;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Modelable;
use Livewire\Component;