This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.
⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.
| <?php | |
| // if you wanna use defer in a package where it may only be optional | |
| // or you don't know or want to mess with if defer is already supported | |
| // also swoole compatible if you get this error: | |
| // Symfony\Component\ErrorHandler\Error\FatalError: Uncaught Swoole\Error: API must be called in the coroutine | |
| if (! function_exists('safeDefer')) { | |
| /** |
| # SETUP # | |
| DOMAIN=example.com | |
| PROJECT_REPO="[email protected]:example.com/app.git" | |
| AMOUNT_KEEP_RELEASES=5 | |
| RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
| RELEASES_DIRECTORY=~/$DOMAIN/releases | |
| DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
| # stop script on error signal (-e) and undefined variables (-u) |
| <?php | |
| namespace App\Livewire\Attributes; | |
| use Attribute; | |
| use Livewire\Features\SupportAttributes\Attribute as LivewireAttribute; | |
| use function Livewire\store; | |
| #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] |
| <?php | |
| \Illuminate\Support\Str::macro('extremeSnake', function($value, $delimiter = '_') { | |
| $pattern = <<<'REGEXP' | |
| / | |
| (?<!^) # don't match the beginning of a string | |
| ( | |
| (?<=[^\p{Lu}])[\p{Lu}\p{M}]+(?=\p{M}?[^\p{Ll}]\p{M}?\p{L}) # string of upper-case (like an abbreviation) | |
| | (?<=\p{Lu}{2})[\p{Lu}\p{M}](?=\p{M}?\p{Ll}) # the final upper-case in a sequence | |
| | (?<=[^\p{Lu}])[\p{Lu}\p{M}](?=\p{M}?\p{Ll}) # first upper-case in a capitalized sequence |
| /* | |
| Made by Elly Loel - https://ellyloel.com/ | |
| With inspiration from: | |
| - Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
| - Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
| - Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
| Notes: | |
| - `:where()` is used to lower specificity for easy overriding. | |
| */ |
| <?php | |
| declare(strict_types=1); | |
| namespace Utils\PHPStan; | |
| use Generator; | |
| use Illuminate\Database\Eloquent\Model; | |
| use PhpParser\Node; | |
| use PhpParser\Node\Expr\PropertyFetch; |
| <?php | |
| Collection::macro('export', function (string $filename, array $headers = []) { | |
| return (new class($this, $headers) implements FromCollection, WithHeadings{ | |
| use Exportable; | |
| public function __construct( | |
| private \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Collection $collection, | |
| private array $headings = [] | |
| ) { |
| FROM php:7.4-fpm | |
| RUN apt-get update && apt-get install -y libldb-dev libldap2-dev libzip-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev \ | |
| && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ | |
| && docker-php-ext-install -j$(nproc) zip pdo pdo_mysql gd ldap pcntl opcache |
| // ==UserScript== | |
| // @name Add AlpineJs to Tailwind UI | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.0 | |
| // @description Add Alpine JS code to Tailwind Ui copy/paste | |
| // @author https://gist.github.com/KevinBatdorf/8bd5f808fff6a59e100dfa08a7431822 | |
| // @match https://tailwindui.com/components/* | |
| // @grant none | |
| // ==/UserScript== |