Skip to content

Instantly share code, notes, and snippets.

View mabumusa1's full-sized avatar

Mohammad Abu Musa mabumusa1

View GitHub Profile
@mabumusa1
mabumusa1 / mautic
Last active September 23, 2024 06:00
*/5 * * * * www-data /bin/bash /var/www/html/bin/sc_update.sh
* * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:emails:send > /var/www/logs/cron.log 2>&1
*/2 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:messages:send > /var/www/logs/cron.log 2>&1
3,18,33,48 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:import > /var/www/logs/cron.log 2>&1
4,19,34,49 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:webhooks:process > /var/www/logs/cron.log 2>&1
6,21,36,51 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:broadcasts:send > /var/www/logs/cron.log 2>&1
0 8,12 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:reports:scheduler > /var/www/logs/cron.log 2>&1
0 1 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:donotsell:download > /var/www/logs/cron.log 2>&1
5 1 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:max-mind:purge > /var/www/logs/cron.log 2>&1
0 0 * * 6 www-data /usr/bin/php /var/www/html/bin/co
@mabumusa1
mabumusa1 / deploy.sh
Created April 11, 2022 22:16 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@mabumusa1
mabumusa1 / config_prod.php
Created November 25, 2020 10:56 — forked from heathdutton/config_prod.php
An example of how to use Master/Slave support with mautic. In this case supporting an optional read-only replica cluster with AuroraDB.
<?php
$loader->import('config.php');
if (file_exists(__DIR__.'/security_local.php')) {
$loader->import('security_local.php');
} else {
$loader->import('security.php');
}
@mabumusa1
mabumusa1 / MauticDDev.md
Last active September 7, 2022 18:42
Mautic DDEV Installation

Prepare Your Mautic Development Environment

The purpose of this document is to setup a development enviroment that runs on Microsoft Windows.

Tools

  1. DDev
  2. Choco
  3. Docker Compsoe
  4. WSL 2
@mabumusa1
mabumusa1 / gist:7080a3b360552a2ecba965b9e4815b33
Created September 15, 2018 08:41
Steps to add SSL to homestead
sudo cp ca.homestead.homestead.crt /home/vagrant/code/
Import crt file to the certificate root
redirect nginx to SSL only
# force https-redirects
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
@mabumusa1
mabumusa1 / homestead.yaml
Last active September 15, 2018 08:39
Generic Configuration for Laravel Homestead
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
backup: true
authorize: ~/.ssh/id_rsa
keys:
function getParameterByName(name) {
var url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
@mabumusa1
mabumusa1 / UTM_Wuffo.html
Created November 26, 2017 11:26
Implementing UTM tracking with Wufoo forms
<html>
<body>
<script>
function getParameterByName(name) {
url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';