The setup installs the following software:
The setup installs the following software:
- Apache
- MySQL
- PHP
- Node
<?php | |
/* | |
Converte caracteres especiais em caracteres simples(ASCII). | |
Exemplos: ç > c, á > a, Á > A, etc... | |
*/ | |
function utf8_translit($string) { | |
$characters = array( | |
" " /* 00a0 'NO-BREAK SPACE' */ => " ", | |
"¡" /* 00a1 'INVERTED EXCLAMATION MARK' */ => "!", | |
"¢" /* 00a2 'CENT SIGN' */ => "c", |
<?php | |
/** | |
* Bcrypt hashing class | |
* | |
* @author Thiago Belem <[email protected]> | |
* @link https://gist.github.com/3438461 | |
*/ | |
class Bcrypt { |
<?php | |
// Encriptando a senha | |
$senha = 'ola mundo'; | |
$hash = Bcrypt::hash($senha); | |
// $hash = $2a$08$MTgxNjQxOTEzMTUwMzY2OOc15r9yENLiaQqel/8A82XLdj.OwIHQm | |
// Salve $hash no banco de dados | |
// Verificando a senha | |
$senha = 'ola mundo'; |
<?php | |
// Inclui o arquivo class.phpmailer.php localizado na pasta phpmailer | |
require_once("phpmailer/class.phpmailer.php"); | |
// Inicia a classe PHPMailer | |
$mail = new PHPMailer(); | |
// Define os dados do servidor e tipo de conexão | |
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
$mail->IsSMTP(); // Define que a mensagem será SMTP |
<?php | |
function validar_cpf($cpf) | |
{ | |
$cpf = preg_replace('/\D/', '', (string) $cpf); | |
// Valida tamanho | |
if (strlen($cpf) != 11) | |
return false; | |
#!/bin/bash | |
# log into your server | |
ssh root@[server ipaddress] | |
# change root password | |
passwd | |
# update all packages and operating system | |
apt-get update && apt-get --yes upgrade |
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
#!/bin/bash | |
# About: Bash script to create new Jekyll posts | |
# Author: @AamnahAkram | |
# URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12 | |
# Description: This is a more advanced version of the script which can | |
# - take options | |
# - has color coded status messages | |
# - improved code | |
# - lowercase permalinks | |
# - usage message |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |