Skip to content

Instantly share code, notes, and snippets.

View fry69's full-sized avatar

fry69

View GitHub Profile
@fry69
fry69 / or-free-models.ts
Last active July 20, 2025 07:38 — forked from tluyben/gist:1963331b906568cda67c4814b8ed8311
Get free models from OpenRouter as JSON
#!/usr/bin/env -S deno run --allow-net
/**
* Fetches all models from OpenRouter API and filters for free ones
* Run with: deno run --allow-net openrouter-free-models.js
*/
// Define interfaces for OpenRouter API response types
interface ModelPricing {
prompt: string;
@fry69
fry69 / add_to_zshrc.sh
Last active November 25, 2024 15:28 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# Enhanced AI-powered Git Commit Function with Optimizations and UX Improvements
# Add this to your ~/.bashrc or ~/.zshrc to utilize the `gcm` command.
# Features:
# 1) Validates required dependencies.
# 2) Checks for staged changes.
# 3) Allows customizable exclusion patterns.
# 4) Generates commit messages using an LLM with an extended prompt.
# 5) Provides user-friendly prompts with color-coded messages.
# 6) Handles errors gracefully with informative feedback.