Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
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 |
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
# 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 |
version: '3.1' | |
services: | |
db: | |
image: mariadb:10.6 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: notSecureChangeMe | |
phpmyadmin: |
from bottle import route, run | |
@route('/hello') | |
def hello(): | |
return "Hello World!" | |
run(host='localhost', port=8080, debug=True) |
<html> | |
<head> | |
</head> | |
<body> | |
<h1>HHola Mundo<h1> | |
</body> | |
</html> |
version: '3.4' | |
services: | |
pythondev: | |
image: python:3.11.2-buster | |
container_name: pythondev301 | |
ports: | |
- 8000:8000 | |
- 3000:3000 | |
volumes: |
version: '3.1' | |
services: | |
ghost: | |
image: ghost:4-alpine | |
restart: always | |
ports: | |
- 8080:2368 | |
environment: |
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress | |
restart: always | |
ports: | |
- 8080:80 | |
environment: |