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
<?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
# 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á |
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
# Criar o arquivo requirements com o freeze | |
pip freeze > requirements.txt | |
# Instalar as dependências utilizando o requirements | |
pip install -r requirements.txt |
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 webbrowser | |
webbrowser.open("https://github.com/eder-projetos-dev") |
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
# Checkout From Specific Git Commit ID | |
git log | |
# Copy the commit (SHA) id and checkout using the following command. | |
git checkout 28cd74decb47d8a5294eb59e793cb24a0f242e9e | |
# You can also use the short form of the SHA ID from the start, as shown below. |
OlderNewer