Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
</head>
<body>
<h1>HHola Mundo<h1>
</body>
</html>
from bottle import route, run
@route('/hello')
def hello():
return "Hello World!"
run(host='localhost', port=8080, debug=True)
version: '3.1'
services:
db:
image: mariadb:10.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: notSecureChangeMe
phpmyadmin:
# 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
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
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