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
import datetime as dt | |
agora = dt.datetime.now() | |
data = agora.strftime("%d-%m-%Y") | |
hora = agora.strftime("%H:%M") | |
codigo_html = f''' | |
<!DOCTYPE html> | |
<html> | |
<head> |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<style type="text/css"> | |
body { | |
background-color: rgb(245, 245, 245); | |
margin-top: 5%; | |
margin-left: 5%; | |
margin-right: 5%; | |
} |
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 | |
header("Content-type: text/plain"); | |
// pular linha | |
echo "Isso aqui vai ficar na primeira linha \n E isso na segunda linha \n"; | |
// Tab | |
echo "Testando o tab \t aqui \n"; |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Requisitos Funcionais</title> | |
</head> | |
<body> |
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 | |
$nome = "Apuleio"; | |
// %s -> string | |
printf("O nome é %s <br>", $nome); | |
// %d -> int |
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
sudo apt install python3-pip | |
python3 -m pip install --upgrade pip setuptools wheel | |
pip --version |
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
# No Linux utilize: | |
mkdir myproject | |
cd myproject | |
python3 -m venv venv | |
. venv/bin/activate | |
deactivate venv | |
pip3 install Flask | |
# No Windows utilize: | |
# md myproject |
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
# Criar um novo usuário | |
sudo useradd -d /home/desenvolvimento -c "Desenvolvimento" desenvolvimento | |
# Adicionar o usuário desenvolvimento no grupo ftp | |
sudo usermod -aG ftp desenvolvimento | |
# Remover usuário desenvolvimento do grupo ftp | |
sudo gpasswd -d desenvolvimento ftp | |
# Visualizar grupos em que o usuário está |