Skip to content

Instantly share code, notes, and snippets.

View ArsalanSiddique's full-sized avatar
🏠
Working from home

Arsalan Ahmed Siddique ArsalanSiddique

🏠
Working from home
View GitHub Profile
@ArsalanSiddique
ArsalanSiddique / instructions.md
Created January 14, 2024 00:22 — forked from ju5t/instructions.md
Livewire enabled TinyMCE blade component

Instructions

This is a very basic TinyMCE component. It uses 'entangle'. This allows you to link a Livewire and Alpine property to eachother. If one value changes, the other does too.

Installation

Add tinymce.blade.php to views/components/input. This can be another component folder too if you prefer, but keep in mind that you should also

@ArsalanSiddique
ArsalanSiddique / monitor.php
Created December 1, 2023 13:07 — forked from maxgalbu/monitor.php
Automatically monitor and email PHP error log content - See more at: http://www.jamescaws.com/notes/automatically-email-php-error-log-content/#sthash.Tqmac9Rw.dpuf
<?php
/**
* A script that can be called from cron to automatically email the content
* of a PHP error log file to a developer or webmaster.
*
* Author: James Caws
* Website: http://www.jamescaws.com
*
* It uses the freely available PHPMailer class available from