Skip to content

Instantly share code, notes, and snippets.

@Propaganistas
Propaganistas / MailHog configuration
Last active March 13, 2024 14:26
Laravel MailHog SMTP configuration
# Mailhog
MAIL_MAILER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
@Propaganistas
Propaganistas / daemon.sh
Last active July 7, 2022 08:07
Cron daemon script
#!/bin/sh
#
# DO NOT MOVE THIS FILE, KEEP IN ROOT OF APPLICATION
#
# This file should be called by a Cron job every 5 minutes.
# It will call the Cron Queue and starts processing.
# Each call also checks if processing is already in progress
# (in case of a gigantic queue) and starts a new 'worker' with a maximum of 3.
# Command to call