Skip to content

Instantly share code, notes, and snippets.

@alexavalossv
alexavalossv / docker-mautic.sh
Created Nov 19, 2021
Script que usó Moisés en el directo de Mautic con Docker 😉
View docker-mautic.sh
#!/bin/bash
set -e
apt-get update -y && apt-get upgrade -y
apt-get install -y sudo dialog apt-transport-https ca-certificates gnupg2 software-properties-common htop nano ncdu wget zip unzip curl git gnupg-agent
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && cp /etc/fstab /etc/fstab.bak && echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
curl -fsSL https://get.docker.com -o get-docker.sh
docker network create -d bridge mysql
View cronjobs-moss-Mautic-3.php
// Cronjobs CADA HORA
*/15 * * * * php /tu-ruta/bin/console mautic:webhooks:process
0,15,30,45 * * * * php /tu-ruta/bin/console mautic:email:fetch
4,8,12,17,21,25,29,34,38,42,47,51,55,59 * * * * php /tu-ruta/bin/console mautic:emails:send
2,6,10,14,19,23,27,32,36,40,44,49,53,57 * * * * php /tu-ruta/bin/console mautic:campaigns:rebuild
@alexavalossv
alexavalossv / cronjobs-mautic-2-runcloud.php
Created Feb 16, 2021
Cron jobs Mautic 2 para RunCloud
View cronjobs-mautic-2-runcloud.php
____ _ _ __ __ _ _
/ ___|_ __ ___ _ __ (_) ___ | |__ ___ | \/ | __ _ _ _| |_(_) ___
| | | '__/ _ \| '_ \ | |/ _ \| '_ \/ __| | |\/| |/ _` | | | | __| |/ __|
| |___| | | (_) | | | || | (_) | |_) \__ \ | | | | (_| | |_| | |_| | (__
\____|_| \___/|_| |_|/ |\___/|_.__/|___/ |_| |_|\__,_|\__,_|\__|_|\___|
|__/
para RunCloud
═════════════╠ Obligatorios ╣
@alexavalossv
alexavalossv / funcionalidades.php
Created Jan 21, 2021
Plugin con las funciones personalizadas que usamos en el directo
View funcionalidades.php
<?php
/*
Plugin Name: Funcionalidades
Plugin URI: https://avalos.sv
Description: Plugin con las funciones personalizadas para tu web
Version: 1.0.0
Author: Alex Avalos
Author URI: https://avalos.sv
License: GPL 2+
License URI: https:/avalos.sv
@alexavalossv
alexavalossv / htaccess Mautic 2.X
Created Jan 16, 2021
htaccess para Mautic y las migraciones
View htaccess Mautic 2.X
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
#DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
@alexavalossv
alexavalossv / cronjobs-mautic-runcloud.php
Last active Nov 4, 2020
Cron jobs Mautic 3.1.1 para RunCloud
View cronjobs-mautic-runcloud.php
____ _ _ __ __ _ _
/ ___|_ __ ___ _ __ (_) ___ | |__ ___ | \/ | __ _ _ _| |_(_) ___
| | | '__/ _ \| '_ \ | |/ _ \| '_ \/ __| | |\/| |/ _` | | | | __| |/ __|
| |___| | | (_) | | | || | (_) | |_) \__ \ | | | | (_| | |_| | |_| | (__
\____|_| \___/|_| |_|/ |\___/|_.__/|___/ |_| |_|\__,_|\__,_|\__|_|\___|
|__/
_____
|___ /
|_ \
___) |
View cronjobs-ordenados.php
// Cronjobs CADA HORA
*/15 * * * * php /tu-ruta/app/console mautic:webhooks:process
0,15,30,45 * * * * php /tu-ruta/app/console mautic:email:fetch
4,8,12,17,21,25,29,34,38,42,47,51,55,59 * * * * php /tu-ruta/app/console mautic:emails:send
2,6,10,14,19,23,27,32,36,40,44,49,53,57 * * * * php /tu-ruta/app/console mautic:campaigns:rebuild
@alexavalossv
alexavalossv / shortcode-webinar.html
Last active Apr 21, 2020
Shortcode con opciones mínimas para Webinar
View shortcode-webinar.html
[buddymeet room=minuevareunionpro subject=WebinarPremium show_watermark=false default_language=Spanish toolbar=‘livestreaming,chat,raisehand,settings,microphone,camera,desktop,fullscreen’]
@alexavalossv
alexavalossv / Shortcode BuddyMeet
Created Apr 8, 2020
Shortcode para utilizarlo con el plugin BuddyMeet
View Shortcode BuddyMeet
[buddymeet room=MyReunionOnline subject=‘Reunión Online’ show_watermark=false
default_language=spanish toolbar=‘livestreaming,sharedvideo,chat,raisehand,settings,microphone,camera,desktop,fullscreen,shortcuts,tileview,mute-everyone’]
@alexavalossv
alexavalossv / usuario-con-poderes.php
Last active Mar 14, 2020
Añadir usuarios personalizados en WordPress
View usuario-con-poderes.php
// Añadir un perfil/rol de usuario personalizado en WordPress
add_role('poderoso', __('Poderoso'),
array(
'read' => true, // Deja leer
)
);