Skip to content

Instantly share code, notes, and snippets.

View LeonardoPessatti's full-sized avatar
😼
Ruthless pragmatism

Leonardo Pessatti LeonardoPessatti

😼
Ruthless pragmatism
View GitHub Profile
<?php
protected function sendMail($msg, $assunto, $para, array $anexos = null, $de = 'Time Doppio<[email protected]>'){
$curl = curl_init();
$parametros = array(
'from' => $de,
'to' => $para,
'subject' => $assunto,
'o:tracking' => 'yes',
@LeonardoPessatti
LeonardoPessatti / settings.json
Created January 13, 2021 04:22
Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@LeonardoPessatti
LeonardoPessatti / VS Code Settings
Last active January 13, 2021 04:28
Arquivo de configurações, teclas de atalho e formatações do php-cs-fixer para o VSCode.
My Settings for VS Code.
- Leonardo Pessatti
@LeonardoPessatti
LeonardoPessatti / LightSailBackup.js
Last active November 30, 2018 16:10
AWS Lambda function para backup de servidores Lightsail.
'use strict';
exports.handler = (event, context, callback) => {
/**
* Defina suas instâncias e respectivas regiões.
*/
const instances = [
{name: "instancia A", region: "us-east-1"},
{name: "instancia B", region: "us-east-1"},