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> | |
</head> | |
<body> | |
<h1>HHola Mundo<h1> | |
</body> | |
</html> |
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
from bottle import route, run | |
@route('/hello') | |
def hello(): | |
return "Hello World!" | |
run(host='localhost', port=8080, debug=True) |
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
version: '3.1' | |
services: | |
db: | |
image: mariadb:10.6 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: notSecureChangeMe | |
phpmyadmin: |
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
# For more information, please refer to https://aka.ms/vscode-docker-python | |
FROM python:3.11.2-buster | |
# Keeps Python from generating .pyc files in the container | |
ENV PYTHONDONTWRITEBYTECODE=1 | |
# Turns off buffering for easier container logging | |
ENV PYTHONUNBUFFERED=1 | |
# Install pip requirements |
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
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
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 hmac | |
import hashlib | |
def get_secret(key, message): | |
hashed = hmac.new(key.encode('utf-8'), message, hashlib.sha256).hexdigest() | |
return hashed | |
def get_github_secret(key, message): | |
hashed = hmac.new(key.encode('utf-8'), message, hashlib.sha1).hexdigest() | |
return hashed |
OlderNewer