sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| openssl pkcs12 -in certificado.pfx -clcerts -nokeys -out publico.pem -legacy | |
| openssl x509 -in publico.pem -text -noout | grep Issuer | |
| Issuer: C=BR, O=ICP-Brasil, OU=Secretaria da Receita Federal do Brasil - RFB, CN=AC Certisign RFB G5 | |
| CA Issuers - URI:http://icp-brasil.certisign.com.br/repositorio/certificados/AC_Certisign_RFB_G5.p7c | |
| openssl pkcs7 -inform DER -print_certs -in AC_Certisign_RFB_G5.p7c -out cadeia.pem | |
| openssl verify -CAfile cadeia.pem publico.pem |
| Segue a lista de comandos docker e sua utilidade: | |
| docker attach – Acessar dentro do container e trabalhar a partir dele. | |
| docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem. | |
| docker commit – Cria uma imagem a partir de um container. | |
| docker cp – Copia arquivos ou diretórios do container para o host. | |
| docker create – Cria um novo container. | |
| docker diff – Exibe as alterações feitas no filesystem do container. | |
| docker events – Exibe os eventos do container em tempo real. | |
| docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele. |
| #!/bin/bash | |
| #################### SCRIPT PARA BACKUP POSTGRES #################### | |
| # Jeferson R. Costa <[email protected]> # | |
| # Created Feb, 2013 # | |
| # Update Feb, 2013 # | |
| # Definindo parametros do MySQL | |
| echo " -- Definindo parametros do PGSQL ..." |
You can follow these steps to create your own local mail server using postfix.
Before that we need to learn what is Postfix? Postfix is a mail transfer agent (MTA) that routes and delivers electronic mail. And Mail transfer agent is a software that transfers electronic mail from one computer to another computer using Simple Mail Transfer Protocol(SMTP).
Here we are going to use local mail for that and we will use sendmail driver for our laravel project.
| #!/bin/bash | |
| # | |
| # Usage: | |
| # ./make_certs.sh test.example.com | |
| # | |
| # The required input to make_certs.sh is the path to your pfx file without the .pfx prefix | |
| # | |
| # test.example.com.key | |
| # test.example.com.crt (includes ca-certs) |
baseado no meu outro tutorial https://gist.github.com/luzfcb/1a7f64adf5d12c2d357d0b4319fe9dcd
Use o pyenv https://github.com/pyenv/pyenv para baixar, instalar e gerenciar múltiplas versões do INTERPRETADOR Python na sua maquina.
Primeiro instale as dependências:
Linux (Ubuntu):
Abra um terminal, apertando o atalho CRTL + ALT + T ou digite aperte a tecla do windows e digite terminal, ou clique com o botão direito na tela, e escolha a opção "Abrir Terminal" (somente para Ubuntu 15.10 ou superior, para 14.04 é necessário instalar o pacote nautilus-open-terminal e reiniciar)
| brew update | |
| brew link yasm | |
| brew link x264 | |
| brew link lame | |
| brew link xvid | |
| brew install ffmpeg | |
| ffmpeg wiki: | |
| https://trac.ffmpeg.org/wiki/Encode/MP3 |