This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
/* | |
Create a Mask in an email address | |
This function create a mask using a valid email address. | |
This is usefull when someone need to confirm the email used in a system | |
Author: Gabriel Froes - https://gist.github.com/gabrielfroes | |
*/ | |
function emailMask(email) { | |
var maskedEmail = email.replace(/([^@\.])/g, "*").split(''); | |
var previous = ""; | |
for(i=0;i<maskedEmail.length;i++){ |
/* | |
Create SLUG from a string | |
This function rewrite the string prototype and also | |
replace latin and other special characters. | |
Forked by Gabriel Froes - https://gist.github.com/gabrielfroes | |
Original Author: Mathew Byrne - https://gist.github.com/mathewbyrne/1280286 | |
*/ | |
if (!String.prototype.slugify) { | |
String.prototype.slugify = function () { |
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli | |
RUN a2enmod rewrite |
<?php | |
use PhpImap\Mailbox; | |
require_once 'vendor/autoload.php'; | |
$mailbox = new Mailbox( | |
'{imap.gmail.com:993/imap/ssl}INBOX', | |
'[email protected]', | |
'sua senha aqui', |
/** | |
* Script simples para importação de dados de cotação da Bovespa | |
* | |
* Requisitos: | |
* - Node.js instalado | |
* - instalar as dependencias: npm install extract-zip moment request | |
* | |
* Exemplo de uso: node script_simples_importaca_cota_hist_bovespa.js 05022019 | |
* | |
* Post relacionado: https://albertosouza.net/artigos/22-importando-dados-bovespa |
<?php | |
/** | |
* JSON Web Token implementation | |
* | |
* Minimum implementation used by Realtime auth, based on this spec: | |
* http://self-issued.info/docs/draft-jones-json-web-token-01.html. | |
* | |
* @author Neuman Vong <[email protected]> | |
*/ | |
class JWT |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
<?php | |
// Exit the file, string inside get's echo'ed | |
die("This file is not ment to be ran. ¯\_(ツ)_/¯"); | |
exit("This file is not ment to be ran. ¯\_(ツ)_/¯"); | |
/** | |
* Printing | |
*/ | |
echo ""; // Print a string or type that can be made into a string(I.E int, float). |