Skip to content

Instantly share code, notes, and snippets.

View garyblankenship's full-sized avatar
🎩
I may be slow to respond.

Gary Blankenship garyblankenship

🎩
I may be slow to respond.
View GitHub Profile
@garyblankenship
garyblankenship / .aider.model.metadata.json
Created May 6, 2025 14:47
Aider gpt 4.1 openrouter support
{
"openrouter/openai/gpt-4.1": {
"max_input_tokens": 1014808,
"max_output_tokens": 32768,
"input_cost_per_token": 0.000002,
"output_cost_per_token": 0.000008,
"input_cost_per_token_batches": 0.000001,
"output_cost_per_token_batches": 0.000004,
"cache_read_input_token_cost": 0.0000005,
"litellm_provider": "openai",
@garyblankenship
garyblankenship / aider-gh.md
Created April 24, 2025 12:56
Aider with Github CLI

Working with GitHub Issues in Aider

This tutorial shows how to use Aider's /run command to work with GitHub issues using the GitHub CLI.

Prerequisites

  • GitHub CLI (gh) installed and authenticated
  • Aider installed
  • A GitHub repository with issues
@garyblankenship
garyblankenship / pb_blueprint.go
Created April 23, 2025 12:43
PocketBase Blueprint
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
@garyblankenship
garyblankenship / mlx-cheatsheet.md
Created April 20, 2025 23:21
mlx-lm cheatsheet

MLX Framework Cheatsheet

Overview

MLX is an array framework for machine learning on Apple silicon, designed by Apple machine learning research. It offers high performance, familiar APIs, and seamless integration with Apple's ecosystem.

Core Features

  • Familiar APIs: Python API based on NumPy, with C++, Swift interfaces
  • Composable function transformations: For automatic differentiation, vectorization, optimization
@garyblankenship
garyblankenship / mlx-lm.yaml
Created April 20, 2025 23:20
mlx lm taskfile.yml
version: '3'
vars:
DEFAULT_MODEL: mistralai/Mistral-7B-Instruct-v0.3
DEFAULT_QUANT_MODEL: mlx-community/Llama-3.2-3B-Instruct-4bit
OUTPUT_DIR: ./outputs
DATA_DIR: ./data
ADAPTERS_DIR: ./adapters
MAX_TOKENS: 500
TEMP: 0.7
@garyblankenship
garyblankenship / llms-taskfile.md
Created April 11, 2025 14:45
Taskfile llms.txt

Taskfile (go-task) Documentation Summary for LLMs

Introduction

Task (also known as go-task) is a task runner and build tool written in Go. Its primary goal is to be simpler and easier to use than alternatives like GNU Make. It uses YAML files (typically Taskfile.yml or Taskfile.yaml) to define tasks, making it more readable and modern compared to Makefile syntax. Being a single binary written in Go, it has no runtime dependencies (other than the binary itself) and is cross-platform (Linux, macOS, Windows).

Core Concepts

  • Taskfile: A YAML file (default: Taskfile.yml or Taskfile.yaml in the current directory) that defines the configuration and tasks.
  • Tasks: Named sets of commands or actions defined within the Taskfile under the tasks: key.

How To Install PocketBase on Digital Ocean

Prerequisites

  • A Digital Ocean account with an Ubuntu droplet (even the smallest $4 option works)
  • Basic knowledge of using the command line and SSH
  • A domain or subdomain (optional, for accessible URL with SSL)

Steps

  1. Spin up a Digital Ocean droplet
  • Select a standard Ubuntu droplet; any size works for testing
@garyblankenship
garyblankenship / pocketbase-deploy.md
Created March 25, 2025 16:51
How To Install PocketBase on Digital Ocean

How To Install PocketBase on Digital Ocean

Prerequisites

  • A Digital Ocean account with an Ubuntu droplet (even the smallest $4 option works)
  • Basic knowledge of using the command line and SSH
  • A domain or subdomain (optional, for accessible URL with SSL)

Steps

  1. Spin up a Digital Ocean droplet
  • Select a standard Ubuntu droplet; any size works for testing
@garyblankenship
garyblankenship / claudemac.md
Created March 24, 2025 03:29
Claude Desktop for M2 user

10,000 years is a very short time on an evolutionary timescale. Significant morphological (physical form) changes usually take much longer. However, even in this short period, we can see evidence of evolutionary changes, particularly in humans and in species strongly influenced by human activity. Crucially, a lot of what looks like rapid evolution in this timeframe is actually adaptation within existing genetic variation or changes driven by artificial selection (selective breeding by humans).

Here's a breakdown of evolutionary changes (and related phenomena) over the past 10,000 years:

1. Human Evolution:

  • Lactase Persistence: This is the classic example. Most mammals lose the ability to digest lactose (the sugar in milk) after weaning. However, in several human populations with a history of dairying (e.g., Northern Europeans, some African and Middle Eastern groups), a mutation for lactase persistence (the continued production of the lactase enzyme into adulthood) spread rapidly. T