Skip to content

Instantly share code, notes, and snippets.

View dreitagebart's full-sized avatar
✈️
on boarding

dreitagebart dreitagebart

✈️
on boarding
View GitHub Profile
@dreitagebart
dreitagebart / prompt.md
Created August 29, 2026 19:33
Claude code cost saving prompt

Audit this setup for token waste. Do not fix anything. Report only.

Use your shell and file tools to measure each item. If you cannot invoke slash commands yourself, ask me to run /context and /usage and paste the output, then continue.

  1. MEMORY Find every CLAUDE.md in scope: this project, parent directories, the user level one, and anything pulled in with @imports. Report each file's size in tokens. Flag any single file over 5k and any total over 10k.
@dreitagebart
dreitagebart / remove-obsolete-gpg-key-from-dnf.md
Created September 15, 2024 11:04 — forked from e7d/remove-obsolete-gpg-key-from-dnf.md
Remove obsolete GPG key from DNF (Fedora)
@dreitagebart
dreitagebart / custom-fetcher.ts
Created August 26, 2024 07:52
custom fetcher for next js and react-query
import request from 'graphql-request'
import { type TypedDocumentNode } from '@graphql-typed-document-node/core'
import {
QueryClient,
useMutation,
useQuery,
useQueryClient,
type UseQueryResult
} from '@tanstack/react-query'