This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Lista os containers ativos | |
| docker ps | |
| # Remove um container ativo | |
| docker rm <nome container> | |
| # Instala extensions no container (É necessário estar dentro do container) | |
| docker-php-ext-install <extensão> | |
| # Ativa um container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download do framework, instalação e criação do projeto para utilizar a biblioteca, dentro da pasta do laravel | |
| # $ composer create-project --prefer-dist laravel/laravel <nome-do-projeto> | |
| # $ composer install | |
| # Iniciar servidor dentro da pasta do laravel | |
| php artisan serve | |
| # Cria um arquivo de migration de atualização do banco de dados com o nome informado | |
| php artisan make:migration <nome-migration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Incluir essa linha para Habilitar a configuração do Multi-Site em Tools | |
| define('WP_ALLOW_MULTISITE', true ); | |
| define('MULTISITE', true); | |
| define('SUBDOMAIN_INSTALL', true); | |
| define('DOMAIN_CURRENT_SITE', 'fpaprod.hacklab.com.br'); | |
| define('PATH_CURRENT_SITE', '/'); | |
| define('SITE_ID_CURRENT_SITE', 1); | |
| define('BLOG_ID_CURRENT_SITE', 1); | |
| define('COOKIE_DOMAIN', false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MariaDB | |
| # Dump de vários banco de dados | |
| $ mysqldump --databases <database1> <databasen> | |
| # Dump de tabelas especificas de um banco de dados específico (Isso cria com os comandos se a tabela existe, apaga a tabela e cria novamente) | |
| $ mysqldump <database> <table1> <table2> <tablen> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT teoriadebate.node.nid, wordpress.wp_2_posts.ID, teoriadebate.node.title FROM teoriadebate.node INNER JOIN wordpress.wp_2_posts ON wordpress.wp_2_posts.post_title = teoriadebate.node.title WHERE teoriadebate.node.type = 'pessoa_autor' ORDER BY teoriadebate.node.title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| git_source(:github) do |repo_name| | |
| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
| "https://github.com/#{repo_name}.git" | |
| end | |
| ruby '2.4.1' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Para Windows 10 versão Home, utilizar Docker Toolbox | |
| # No Windows 10, o docker utiliza máquinas virtuais, podendo ser VirtualBox ou o Hyper-V | |
| # Para criar uma máquina virtual, necessário rodar a prompt de comando com Administrador e executar o seguinte comando: | |
| docker-machine create --driver <virtualbox|hyperv> <nomevm> | |
| # Após a criação da máquina virtual, deve ser definido o tipo de console da máquina virtual, pode ser CMD, PowerShell, Fish ou TCSH. | |
| docker-machine env --shell <cmd|powershell> <nomevm> | |
| # Reinicia máquina virtual criada | |
| docker-machine restart <nomevm> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2.1" | |
| services: | |
| web: | |
| image: koder/apache-php-5.3 | |
| volumes: | |
| - ./conf/httpd.conf:/usr/local/apache2/conf/httpd.conf | |
| - ./cakephp/:/var/www/web/ | |
| ports: | |
| - "8061:8080" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove a verificação das permissões dos arquivos do projeto do Git | |
| $ git config core.filemode | |
| # Stash com comentário customizado | |
| $ git stash save <doing crazy things> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Cria um novo módulo no App em Angular e diz em qual módulo ele será utilizado | |
| ng g c new-component --module app | |
| #Cria um novo serviço no App em Angular e diz em qual módulo ele será utilizado | |
| ng g s new-component --module app |