Skip to content

Instantly share code, notes, and snippets.

View zzfortezz's full-sized avatar

Richard Tong zzfortezz

View GitHub Profile
@zzfortezz
zzfortezz / laravel.conf
Created March 15, 2023 18:36 — forked from jiromm/laravel.conf
Logstash config file for laravel logs
input {
file {
path => "/var/www/laravel-project/storage/logs/laravel.log"
codec => multiline {
pattern => "^\[%{TIMESTAMP_ISO8601:timestamp}\]"
what => "previous"
negate => true
}
}
}
@zzfortezz
zzfortezz / Apache.md
Created June 10, 2021 08:06 — forked from ignatisD/Apache.md
MailHog localhost xampp/wamp integration

#MailHog example page

MailHog is an email testing tool for developers.

It gives the developer the option to intercept and inspect the emails sent by his application.

You can download the MailHog Windows client from one of the links below.

@zzfortezz
zzfortezz / code.php
Created November 9, 2018 08:35 — forked from dtbaker/code.php
Add a custom control to an existing Elementor widget
// This example will add a custom "select" drop down to the "Image Box"
// This will change the class="" on the rendered image box so we can style the Image Box differently
// based on the selected option from the editor.
// The class will be "my-image-box-style-blue" or "my-image-box-style-green" based on the selected option.
add_action('elementor/element/before_section_end', function( $section, $section_id, $args ) {
if( $section->get_name() == 'image-box' && $section_id == 'section_image' ){
// we are at the end of the "section_image" area of the "image-box"
$section->add_control(