Skip to content

Instantly share code, notes, and snippets.

View gchamon's full-sized avatar
🏠
It's home, but it's Office

Gabriel Chamon Araujo gchamon

🏠
It's home, but it's Office
  • NuNet
  • Brazil
View GitHub Profile
[tool.poetry]
name = "temp"
version = "0.1.0"
description = ""
authors = ["me"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
@gchamon
gchamon / RESTORE_BACKUP.md
Last active March 31, 2024 02:54
How to restore my borg backup

Installing the operating system

Use the anarchy install medium:

  • encrypted luks device
  • anarchy-advanced
  • lts kernel with base devel
  • clean desktop: kde
  • other configs as needed (Swap, UEFI, bluetooth, trackpad...) but mostly just install everything
@gchamon
gchamon / backend.py
Last active June 2, 2023 20:15
Gists with functional code from papyrus article about OIDC, JWT and Python
from flask import Flask
from uuid import uuid4
app = Flask(__name__)
app.config["SECRET_KEY"] = str(uuid4())
IDP_CONFIG = {
"well_known_url": "Identity Provider wellknown url: https://{TENANT}.auth0.com/.well-known/openid-configuration",