- Run sudo command without a password
- LAMP (Linux Apache, MySQL and PHP)
- Install Composer
- Install SQL Server PDO Driver
- [Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server
Instruções de como instalar aqui https://github.com/FiloSottile/mkcert
No Ubuntu o root CA gerado é no arquivo .pem, e o Windows não aceita este formato, por isso usar o .pfx. O site sslshopper.com faz isto online, mas é recomendado fazer pelo openssl.
cd ~/.local/share/mkcert
openssl pkcs12 -export -out rootCA.pfx -inkey rootCA-key.pem -in rootCA.pem
Baixe o arquivo rootCA.pfx gerado para importação no Windows.
| #!/bin/bash | |
| # Adicione um novo remote; pode chamá-lo de "upstream": | |
| git remote add upstream https://github.com/usuario/projeto.git | |
| # Obtenha todos os branches deste novo remote, | |
| # como o upstream/master por exemplo: | |
| git fetch upstream |
| <?php | |
| /* | |
| * Name: wordpress assist clean header | |
| * Source: https://gist.github.com/Auke1810/f2a4cf04f2c07c74a393a4b442f22267 | |
| * Date: 2020-07-25 | |
| */ | |
| remove_action('wp_head', 'rsd_link'); // remove really simple discovery link | |
| remove_action('wp_head', 'wp_generator'); // remove wordpress version |
| #!/bin/bash | |
| Green_font="\033[32m" && Yellow_font="\033[33m" && Red_font="\033[31m" && Font_suffix="\033[0m" | |
| Info="${Green_font}[Info]${Font_suffix}" | |
| Error="${Red_font}[Error]${Font_suffix}" | |
| NGX_DIR=/www/server/nginx | |
| NPS_VESION=1.13.35.2-stable | |
| echo -e "${Green_font} | |
| #======================================= | |
| # Project: nps-auto |
| version: "3" | |
| services: | |
| vscode: | |
| container_name: vscode" | |
| hostname: vscode | |
| image: codercom/code-server | |
| environment: | |
| PASSWORD: devingongoogle |
| <?php | |
| namespace App\Support\Request; | |
| use Illuminate\Http\Testing\MimeType; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Support\Arr; | |
| use Illuminate\Validation\Validator ; | |
| use Symfony\Component\HttpFoundation\File\UploadedFile; |
sentrySENTRY_SECRET_KEY to random 32 char stringdocker-compose up -ddocker-compose exec sentry sentry upgrade to setup database and create admin userdocker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done laterdocker-compose restart sentry9000