Skip to content

Instantly share code, notes, and snippets.

View fpaupier's full-sized avatar
🎯
Focus

Frαnçois fpaupier

🎯
Focus
View GitHub Profile
@fpaupier
fpaupier / 1-setup.md
Created February 16, 2026 18:23 — forked from troyfontaine/1-setup.md
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@fpaupier
fpaupier / README.md
Created May 16, 2025 11:55 — forked from liviaerxin/README.md
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@fpaupier
fpaupier / git-diff-single-file
Created December 16, 2020 07:09 — forked from bradurani/git-diff-single-file
Git diff single file
git diff <branch>:<dir>/<filename> <branch>:<div>/<filename>