Skip to content

Instantly share code, notes, and snippets.

@thomasdarimont
thomasdarimont / app.py
Last active December 29, 2024 14:59
Example for a simple Python flask webapp that uses Authlib to act as an OpenID Connect client for Keycloak
import json
import os
import certifi
import requests
from authlib.oauth2.rfc6749 import OAuth2Token
from flask import Flask, url_for, session
from flask import render_template, redirect
from authlib.integrations.flask_client import OAuth, token_update
@devmahmud
devmahmud / generate-pem.md
Last active February 5, 2025 18:01
Generate pem file to login into remote server

We can use pem file to login into remote server from our local machines. Infact if you use AWS, the only way to SSH into the server is using pem file.

1. On your local Machine from where you require access, Home directory of the user is preferable

cd ~
ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
@webarchitect609
webarchitect609 / terminal.sh
Last active April 16, 2025 13:23
Git: disable GPG signing for current repo only.
# Write local
git config --local commit.gpgsign false
# Read local (if never set, can be an empty value)
git config --local commit.gpgsign
@parmentf
parmentf / GitCommitEmoji.md
Last active April 24, 2025 05:25
Git Commit message Emoji