Skip to content

Instantly share code, notes, and snippets.

View agenciafera's full-sized avatar

Agência Fera agenciafera

View GitHub Profile
@agenciafera
agenciafera / mautic-cliente
Last active June 14, 2018 14:41
crontab Mautic
SHELL=/bin/sh
MAUTIC=/caminho/ate/a/instalacao/do/mautic
1,5,9,13,18,22,26,31,35,39,43,48,52,56 * * * * www-data php $MAUTIC/console mautic:segments:update --force --batch-limit=300
2,6,10,14,19,23,27,32,36,40,44,49,53,57 * * * * www-data php $MAUTIC/console mautic:campaigns:rebuild --force --batch-limit=300
3,7,11,16,20,24,28,33,37,41,46,50,54,58 * * * * www-data php $MAUTIC/console mautic:campaigns:trigger --force --batch-limit=100
4,8,12,17,21,25,29,34,38,42,47,51,55,59 * * * * www-data php $MAUTIC/console mautic:emails:send
0 0 20 * * www-data php $MAUTIC/console mautic:iplookup:download
@agenciafera
agenciafera / integracaorunner
Last active November 30, 2017 17:54
Integração Runner
Integração Automação Fera + Runner
===================
Esse documento tem como objetivo definir os padrões da integração entre a ferramenta de automação de marketing e as aplicações do lado da Runner.
A ferramenta de automação de marketing está hospedada no endereço:
http://automatic.runner.com.br
----------
{% set plans = plans.get(unit.code) %}
<ul class="nav nav-tabs nav-dcc" role="tablist">
{% if plans['DCC'] and (this.param.plano == 'dcc' or not this.param.plano) %}
<li {% if this.param.plano == 'dcc' or not this.param.plano %}class="active"{% endif %}><a href="#plans-dcc" aria-controls="dcc" role="tab" data-toggle="tab">Plano DCC</a></li>
{% endif %}
{% if plans['PACOTE'] and (this.param.plano == 'pacote' or not this.param.plano) %}
<li {% if this.param.plano == 'pacote' %}class="active"{% endif %}><a href="#plans-pacote" aria-controls="pacote" role="tab" data-toggle="tab">PACOTES</a></li>
{% endif %}
{% if plans['PLATINUM'] and (this.param.plano == 'platinum' or not this.param.plano) %}
<li {% if this.param.plano == 'platinum' %}class="active"{% endif %}><a href="#plans-platinum" aria-controls="platinum" role="tab" data-toggle="tab">Platinum</a></li>