Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions alacritty/.config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ y = 4
[general]
live_config_reload = true
import = ["/Users/drewjs/.config/alacritty/themes/catppuccin-mocha.toml"]

[[keyboard.bindings]]
key = "Return"
mods = "Shift"
chars = "\u001b\r"
27 changes: 27 additions & 0 deletions bin/.local/bin/test-anthropic-key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Test an Anthropic API key by making a minimal API call

key="${1:-$ANTHROPIC_API_KEY}"

if [[ -z "$key" ]]; then
echo "Usage: test-anthropic-key <api-key>"
echo "Or set ANTHROPIC_API_KEY env var"
exit 1
fi

response=$(curl -s -w "\n%{http_code}" https://api.anthropic.com/v1/messages \
--header "x-api-key: $key" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--data '{"model":"claude-sonnet-4-5-20250929","max_tokens":10,"messages":[{"role":"user","content":"Hi"}]}')

http_code=$(echo "$response" | tail -1)
body=$(echo "$response" | sed '$d')

if [[ "$http_code" == "200" ]]; then
echo "Key is valid (HTTP $http_code)"
else
echo "Key failed (HTTP $http_code)"
echo "$body"
exit 1
fi
2 changes: 2 additions & 0 deletions yabai/.yabairc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ yabai -m rule --add app="Raycast" manage=off
yabai -m rule --add app="^Music$" manage=off
yabai -m rule --add app="^Calculator$" manage=off
yabai -m rule --add app="^Microsoft Teams$" manage=off
yabai -m rule --add app="Screen Studio" manage=off
yabai -m rule --add app="Screen Studio Beta" manage=off
yabai -m rule --add app="CleanShot" manage=off

echo "yabai configuration loaded.."