gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains 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
<html> | |
<head><title> Formulário</title></head> | |
<body> | |
<?php | |
if(isset($_POST['enviar'])) { | |
$nome=$_POST["txtNome"]; | |
$tel=$_POST["txtTel"]; | |
$email=$_POST["txtEmail"]; |
This file contains 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
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" |
This file contains 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
CREATE DATABASE IF NOT EXISTS `grade_disciplinar` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
USE `grade_disciplinar`; | |
CREATE TABLE cursos ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
nome VARCHAR(255) NOT NULL, | |
email VARCHAR(255) NOT NULL, | |
created DATETIME NOT NULL , | |
updated DATETIME NOT NULL | |
); |
docker version
- exibe a versão do docker que está instalada.docker inspect ID_container
- retorna diversas informações sobre o contêiner.docker ps
- exibe todos os contêineres em execução no momento.docker ps -a
- exibe todos os contêineres, independentemente de estarem em execução ou não.
docker run NOME_DA_IMAGEM
- cria um contêiner com a respectiva imagem passada como parâmetro.docker run -it NOME_DA_IMAGEM
- conecta o terminal que estamos utilizando com o do contêiner.docker run -d -P --name NOME dockersamples/static-site
- ao executar, dá um nome ao contêiner.