Skip to content

Instantly share code, notes, and snippets.

View nbbaier's full-sized avatar

Nico Baier nbbaier

View GitHub Profile
@nbbaier
nbbaier / verify.md
Last active October 19, 2025 21:18

v0.75.1 Infinite Recursion Bug - Verification Plan

Root Cause

The bug was introduced in v0.75.1 when findWorkspaceRoot() and findWorkspaceRootSync() functions were added to alchemy/src/util/find-workspace-root.ts. These functions recursively traverse parent directories looking for workspace markers (.git, package.json with workspaces, etc.) but lack a base case to stop at the filesystem root, causing infinite recursion when no markers are found.

Affected Code Paths

Path 1: Cloudflare Resources Only

@nbbaier
nbbaier / mcp-server-basic-memory.log
Created July 28, 2025 16:28
error logs for basic memory
2025-07-28T16:28:03.837Z [basic-memory] [info] Initializing server... { metadata: undefined }
2025-07-28T16:28:03.845Z [basic-memory] [info] Using MCP server command: uvx with args and path: {
metadata: {
args: [ 'basic-memory', 'mcp', [length]: 2 ],
paths: [
'/usr/local/bin',
'/opt/homebrew/bin',
'/usr/bin',
'/usr/bin',
'/bin',
Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 2 column 8
---
description: This rule provides comprehensive guidelines for generating skeleton UI components using react-native-fast-shimmer, ensuring pixel-perfect matching with target components' layouts, dimensions, and element positioning.
globs: *.js,*.jsx,*.ts,*.tsx
---

Skeleton UI Generation Rules

This rule ensures that when generating skeleton UI components, they perfectly match the target component's layout, dimensions, and styling while using the custom Shimmer component with semantic subcomponents (Shimmer.Text, Shimmer.Image, Shimmer).

1. Core Requirements

{
"key": "tab",
"command": "editor.action.acceptCursorTabSuggestion",
"when": "сpp.shouldAcceptTab && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{ "key": "tab", "command": "-editor.action.acceptCursorTabSuggestion" }
@nbbaier
nbbaier / settings.json
Created July 4, 2025 16:12
vscode/cursor customizations
{
"workbench.colorCustomizations": {
"activityBar.background": "#22272e",
"activityBar.border": "#444c56",
"activityBar.foreground": "#adbac7",
"activityBar.inactiveForeground": "#768390",
"activityBarBadge.background": "#316dca",
"activityBarBadge.foreground": "#cdd9e5",
"badge.background": "#316dca",
"badge.foreground": "#cdd9e5",
@nbbaier
nbbaier / tana.css
Created June 17, 2025 03:45
tana.css
html {
font-family: "iA Writer Quattro V", system-ui, sans-serif;
-webkit-font-smoothing: subpixel-antialiased;
--baseFontSize: 0.875rem;
--checkboxBorderRadius: 3.75px;
}
.checkWrap {
margin-left: 1.0px;
}
@nbbaier
nbbaier / try-catch.ts
Created April 22, 2025 17:02 — forked from t3dotgg/try-catch.ts
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
system: |
You summarize the pasted in text
Start with a overall summary in a single paragraph
Then show a bullet pointed list of the most interesting illustrative quotes from the piece
Then a bullet point list of the most unusual ideas
Finally provide a longer summary that covers points not included already

2025-04-10T16:46:42 conversation: 01jrg9qt152x9ktnt6e1yvvwet id: 01jrg9qt1pt54njgyw2k0nf7ec

Model: gemini-2.5-pro-exp-03-25

Prompt

write shell completions for this tool

Prompt fragments

@nbbaier
nbbaier / LoremIpsum.astro
Created April 6, 2025 02:17
A simple Astro component to generate a number of random lorem ipsum paragraphs
---
const paragraphs = [
"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Donec sed odio operae, eu vulputate felis rhoncus. Salutantibus vitae elit libero, a pharetra augue. Nihil hic munitissimus habendi senatus locus, nihil horum? A communi observantia non est recedendum.",
"Curabitur blandit tempus ardua ridiculus sed magna. Sed haec quis possit intrepidus aestimare tellus. Quisque ut dolor gravida, placerat libero vel, euismod. Plura mihi bona sunt, inclinet, amari petere vellent.",
"Fictum, deserunt mollit anim laborum astutumque! Quisque placerat facilisis egestas cillum dolore. Nec dubitamus multa iter quae et nos invenerat. Contra legem facit qui id facit quod lex prohibet. Quam diu etiam furor iste tuus nos eludet?",
"Plura mihi bona sunt, inclinet, amari petere vellent. Ab illo tempore, ab est sed immemorabili. Ullamco laboris nisi ut aliquid ex ea commodi consequat. Quae vero auctorem tractata ab fiducia dicuntur. At