Skip to content

Instantly share code, notes, and snippets.

View nicognaW's full-sized avatar
🈚
not shipping

nk nicognaW

🈚
not shipping
View GitHub Profile
@nicognaW
nicognaW / agent.py
Created July 31, 2025 05:30 — forked from leerob/agent.py
agent.py
import os
import json
import subprocess
from anthropic import Anthropic
# Tool definitions
TOOLS = [
{
"name": "list_files",
"description": "List files and directories at a given path",
@nicognaW
nicognaW / README.md
Created August 16, 2024 02:06
How to clone only a subdirectory of a git repo without downloading the whole repo
@nicognaW
nicognaW / databricks-odbc-m1-tweak.md
Created January 13, 2023 09:42
Minimal Rosetta Setup With Databricks ODBC + Node.js

Minimal Rosetta Setup With Databricks ODBC + Node.js

Databricks doesn't distribute their ODBC driver for arm64, so we need to Rosetta the toolchain to x86. I've been using a whole Rosetta development environment for months, and recently I discovered a minimal Rosetta setup.

Trick

Use arch --x86_64 /bin/zsh to switch your shell to a x86 environment, and use exist or arch --arm64 /bin/zsh to switch back.

TL;DR