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
@tomastrajan
tomastrajan / crud-resource.ts
Last active May 27, 2025 18:00
Angular Crud Resource POC
import { HttpClient } from '@angular/common/http';
import {
inject,
DestroyRef,
signal,
computed,
ResourceRef,
linkedSignal,
} from '@angular/core';
import { takeUntilDestroyed, rxResource } from '@angular/core/rxjs-interop';
@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active April 19, 2025 04:37
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: