Skip to content

Instantly share code, notes, and snippets.

View daniellwdb's full-sized avatar

Daniell daniellwdb

View GitHub Profile
@daniellwdb
daniellwdb / settings.json
Created December 6, 2025 06:55
Zed settings
{
"buffer_font_family": "Cascadia Code NF",
"buffer_font_features": {
"ss01": true,
"ss02": true,
"ss03": true,
"ss19": true,
"ss20": true,
"calt": false
},
@daniellwdb
daniellwdb / config.yaml
Created May 11, 2022 07:31
beets config
# Beets config
# Album art manually saved to music folders from: https://covers.musichoarders.xyz
directory: R:/media/music
library: ~/iCloudDrive/beets/library.db
plugins:
## Autotagger Extensions
# https://beets.readthedocs.io/en/stable/plugins/discogs.html
- discogs
@daniellwdb
daniellwdb / cacheMiddleware.ts
Last active June 14, 2022 17:25
Prisma cache middleware
import type { Prisma } from "@prisma/client"
import { redis } from "../redis"
type CacheMiddlewareOptions = {
model: Prisma.ModelName
action: Prisma.PrismaAction
keys?: string[]
defaultValues?: Record<string, unknown>
ttlInSeconds: number
}