Skip to content

Instantly share code, notes, and snippets.

View leoborlot's full-sized avatar

Leo Borlot leoborlot

View GitHub Profile
@leoborlot
leoborlot / .env
Created July 10, 2023 17:52 — forked from cinco/.env
Postal - Clear Held with python
POSTAL_LOGIN=your-email
POSTAL_PASSWORD=your-pass
POSTAL_URL=http://your-postal-domain
POSTAL_ORGANIZATION=slug-of-your-organization
POSTAL_MAIL_SERVER=slug-of-mail-server
Meu Dockerfile
FROM ribafs/ubuntu-maria
ENV MYSQL_ROOT_PASSWORD root
ENV MYSQL_ROOT_DATABASE testes
RUN apt-get update
EXPOSE 3306
ADD ["script.sql", "/tmp/script.sql"] # Cria o banco e muda a senha para vazia
CMD ["start-mysql"]
RUN mysql -uroot -p${MYSQL_ROOT_PASSWORD} -e "CREATE DATABASE testes"
@gugaalves
gugaalves / custom-login-styles.css
Last active April 1, 2026 16:03
WordPress - Customizing Login, Register and Lost Password pages
/*
*
* This CSS template will customize WordPress.org login pages:
*
* Login page: /wp-login.php
* Register page: /wp-login.php?action=register
* Lost Password page: /wp-login.php?action=lostpassword
*
* @site https://tudoparawp.com.br
* @author Guga Alves
@virgilwashere
virgilwashere / _Mautic_nginx_config_files.md
Last active April 18, 2025 12:40 — forked from magnetikonline/README.md
Mautic nginx config files
@heathdutton
heathdutton / 92.chart-label-sum.js
Last active December 21, 2020 02:13
Add sums to all charts in Mautic.
// Add sums to all chart labels in Mautic.
Mautic.chartLabelSum = function () {
if (
typeof Mautic.chartObjects !== 'undefined'
&& Mautic.chartObjects.length
) {
var total, numeric, updated, totalStr;
mQuery.each(Mautic.chartObjects, function (i, chart) {
updated = false;
if (
@luizeof
luizeof / mautic-form.js
Last active October 6, 2021 20:53
Manipulando Eventos de um formulário e enviando para o Mautic
<script>
// Coloque em qualquer parte do código
document.addEventListener('DOMContentLoaded', function () {
// Aqui você coloca o ID do seu formulário que será manipulado
document.getElementById("myForm").onsubmit = function(e) {myFunction(e)};
function myFunction(e) {
// altere aqui a url do seu mautic
@maHostAdmin
maHostAdmin / nginx.site.conf
Created February 16, 2018 17:51
Mautic nginx site conf
server {
listen 80;
listen [::]:80;
# HTTP Authentication on
#include common/acl.conf;
server_name mautic.example.com www.mautic.example.com;
access_log /var/log/nginx/mautic.example.com.access.log rt_cache;
@deviantony
deviantony / README.md
Last active December 4, 2025 20:26
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@luizeof
luizeof / add-wp-user-to-mautic.php
Last active October 10, 2023 23:07
add-wp-user-to-mautic.php
/**
* este código peguei aqui: https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.k5gmcrvjf
* Push data to a Mautic form
*
* Basicamente precisa ter um form do mautic com o campo email e este campo precisa se chamar "email"e
* depois alterar as linhas 19 e 21 com os seus dados
* e colar todo esse conteúdo dentro do functions do seu wordpress. só.
*
* @param array $data The data submitted by your form
@coryjthompson
coryjthompson / WebinarJam.php
Created January 20, 2016 17:19
Implements the WebinarJam API.
<?php
/**
* Class WebinarJam
* Implements the WebinarJam API as documented
* https://s3.amazonaws.com/webinarjam/files/WebinarJamAPI.pdf
*/
class WebinarJam {
public static $API_URL = 'https://app.webinarjam.com/api/v2/';