Skip to content

Instantly share code, notes, and snippets.

View HymanZHAN's full-sized avatar
⌨️
Keep learning!

Xucong Zhan HymanZHAN

⌨️
Keep learning!
View GitHub Profile
@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active July 19, 2024 15:51
Remove obsolete GPG key from DNF (Fedora)
@twolfson
twolfson / README.md
Created February 5, 2015 21:22
Toggling between `alembic` databases

alembic is great but lacks an out of the box way to set up running migrations against a specific database (e.g. development, test, production). The following adjustments to its env.py and alembic.ini allow us to target a specific database:

Example:

alembic -x db=development upgrade head

env.py: