server_name yourdomain.com www.yourdomain.com;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## insert it in /etc/nginx/conf.d/default.conf | |
server { | |
listen 80; | |
server_name my.website.org; | |
return 301 https://my.website.org$request_uri; | |
} | |
server { | |
listen 443 ssl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var __importDefault = (this && this.__importDefault) || function (mod) { | |
return (mod && mod.__esModule) ? mod : { "default": mod }; | |
}; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
const fs_1 = __importDefault(require("fs")); | |
const salt = 'iQhxsIZW5Ijoc3Nj3NWHB0'; | |
const emptyFile = 'security.json'; | |
const encryptedFile = 'security.bin'; | |
class SecurityUtil { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
View, | |
Text, | |
} from 'react-native'; | |
import { TextInputMask } from 'react-native-masked-text' | |
export default function maskedInputTemplate(locals) { | |
if (locals.hidden) { | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Depois de fazer login | |
https://pagseguro.uol.com.br/integracao/botoes_de_pagamento.jhtml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Insert in config folder as file name cli-config.php | |
require_once "vendor/autoload.php"; | |
// bootstrap.php | |
use Doctrine\ORM\Tools\Setup; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Tools\Console\ConsoleRunner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#TO INSTALL COMPOSER ON WINDOWS FOR USING ON COMMAND-LINE | |
#To create composer folder | |
mkdir c:\\composer | |
cd c:\\composer | |
#Composer dowload https://getcomposer.org/download | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |