Skip to content

Instantly share code, notes, and snippets.

View renalpha's full-sized avatar

Jason Hoendervanger renalpha

View GitHub Profile
@renalpha
renalpha / DockerFile
Last active January 5, 2024 16:04
Traefik
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
@renalpha
renalpha / Index.html
Created August 19, 2023 13:44
Ionic Capacitor <video> remote URL IOS Android
<video autoplay loop muted playsinline preload="metadata" webkit-playsinline="webkit-playsinline">
<source src="https://yoururl.test/video/smallerbg-te.mp4" type="video/mp4"/>
</video>
@renalpha
renalpha / LocalValetDriver.php
Last active August 30, 2023 06:43
LocalValetDriver for Typo3 working on Laravel Herd
<?php
class LocalValetDriver extends Valet\Drivers\ValetDriver
{
/*
|--------------------------------------------------------------------------
| Document Root Subdirectory
|--------------------------------------------------------------------------
|
| This subdirectory contains the public server resources, such as the
@renalpha
renalpha / Import.php
Last active March 19, 2024 01:34
RedisVectorConnector.php
<?php
private function indexVector(SplFileInfo $file, string $content): void
{
$metaData = $this->getMetaData($file, $content);
/** @var RedisVector $redisVectorService */
$redisVectorService = app(RedisVector::class);
/** @var \Exdeliver\LaraPal\Connectors\VoyageAIEmbedding $voyage */