Skip to content

Instantly share code, notes, and snippets.

View daniellwdb's full-sized avatar

Daniell daniellwdb

View GitHub Profile
@daniellwdb
daniellwdb / pure-nord.json
Created July 1, 2024 16:42
Custom theme for oh-my-posh based on the pure and nord colour theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"console_title_template": "{{if .Root}}(Admin){{end}} {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@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
}