Skip to content

Instantly share code, notes, and snippets.

View dsp76's full-sized avatar
🌱
Finding bugs you never thought they existed.

Dirk Spannaus dsp76

🌱
Finding bugs you never thought they existed.
View GitHub Profile
@dsp76
dsp76 / commands.php
Created February 5, 2019 19:14 — forked from ChgoChad/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
<?php
if (!isset($_GET['ILoveMautic'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',
@dsp76
dsp76 / GravatarHelper.php
Created September 22, 2022 19:52 — forked from katzueno/GravatarHelper.php
Disable Gravatar for Mautic
<?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
@dsp76
dsp76 / mautic4_tasks.sh
Last active September 20, 2024 16:35
Mautic cron script with mail rate limit - Mautic v4
#!/bin/bash
# Set the working directory to the script's directory
cd "$(dirname "$0")"
# Variables for the script
phpinterpreter="php -d memory_limit=1G"
pathtoconsole="../code/bin/console"
lockfile="/tmp/cronjob.lock"
@dsp76
dsp76 / mautic5_tasks.sh
Last active September 25, 2024 20:23
Mautic cron script with mail rate limit - Mautic v5
#!/bin/bash
MYSELF_PID=$$
# Set the working directory to the directory of the script
cd "$(dirname "$0")"
# Variables for the script
phpinterpreter="php8.2 -d memory_limit=1G"
pathtoconsole="./WEBROOT/bin/console"
lockfile="./WEBROOT/?docroot?/var/tmp/cronjob.lock"