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: |