-
Instalar Serviços de Rede Linux Ubuntu
sudo apt install net-tools
-
Instalação Google Chrome Ubuntu
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb
-
Comandos Básicos Linux
LS – listar diretório Sudo – super permissão Sudo apt-get install Sudo apt-get remove sudo apt-get autoclean sudo apt-get autoremove sudo dpkg-reconfigure phpmyadmin sudo apt-get remove –purge mysql* sudo rm -r [diretorio] – apagar diretório com arquivos sudo apt-get update – atualizar sudo chmod +R 777 pasta – permissão de pasta
-
JWT usando o Yii
Yii2 instalado É necessário um https site habilitado para que o cookie HttpOnly funcione entre sites Uma tabela de banco de dados para armazenar RefreshTokens: Referência: https://www.yiiframework.com/wiki/2568/jwt-authentication-tutorial CREATE TABLE `user_refresh_tokens` ( `user_refresh_tokenID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `urf_userID` INT(10) UNSIGNED NOT NULL, `urf_token` VARCHAR(1000) NOT NULL, `urf_ip` VARCHAR(50) NOT NULL, `urf_user_agent` VARCHAR(1000) NOT NULL, `urf_created`…
-
Start / Stop and Restart Apache 2 Web Server Command
/etc/init.d/apache2 start OR sudo /etc/init.d/apache2 start OR sudo service apache2 start ## Start command ## sudo systemctl start apache2.service ## Stop command ## sudo systemctl stop apache2.service ## Restart command ## sudo systemctl restart apache2.service sudo systemctl status apache2.service
-
HTTP Status Codes
1xx Informational 100 Continue 101 Switching Protocols 102 Processing 2×× Success 200 OK 201 Created 202 Accepted203 Non-authoritative Information 204 No Content 205 Reset Content 206 Partial Content 207 Multi-Status 208 Already Reported 226 IM Used 3×× Redirection 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 305 Use Proxy…
-
PhpStorm
Download PhpStorm
-
OpenVPN
Windows 64-bit MSI installer OpenVPN-2.6.6-I001-amd64.msi Windows ARM64 MSI installer OpenVPN-2.6.6-I001-arm64.msi Windows 32-bit MSI installer OpenVPN-2.6.6-I001-x86.msi Source archive file openvpn-2.6.6.tar.gz https://openvpn.net/community-downloads/
-
Yii Framework PHP
Instalando Yii composer create-project –prefer-dist yiisoft/yii2-app-basic basic Iniciando php Yii Server Criar controller php yii gii/controller –controllerClass=”nameSpace-do-controller” Exemplo: php yii gii/controller –controllerClass=”app\controllers\TestController”