Skip to content

Instantly share code, notes, and snippets.

@pintend
pintend / php.dockerfile
Created November 20, 2024 03:11
PHP 8.3 connecting to MSServer 2012 - 11.0
# amd64/php | php
ARG PHP_PLATFORM="amd64/php"
# 8.2 | 8.3
ARG PHP_VERSION="8.3"
ARG ALPINE_VERSION="3.20"
FROM --platform="linux/amd64" ${PHP_PLATFORM}:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION}
# 17.10.5 | 17.10.6
ARG ODBC_VERSION="17.10.6"
@pintend
pintend / magisk_ramdisk_patch_avd.sh
Created January 10, 2024 19:38 — forked from tothi/magisk_ramdisk_patch_avd.sh
Apply Magisk patches on AVD (Android Emulator) RAMDISK images for running Magisk (root) on Android Emulators
#!/bin/bash
#
# patch ramdisk.img (for installing Magisk on x64 Android emulator)
#
# x86_64 on Android 12 (API Level 32) is supported/tested currently
#
# install AVD:
#
# sudo sdkmanager 'system-images;android-32;google_apis_playstore;x86_64'
@pintend
pintend / MailMessage.php
Created March 6, 2023 18:11
Send a simple notification email using the power of laravel without the complexities of laravels notifications
<?php
namespace App\Mail;
use BadMethodCallException;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;