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 / 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

Understanding Aider: Models and Modes Simplified

Based on the discussion in the Discord chat, there seems to be confusion about how Aider's models and modes interact. Let me clarify the key points:

The Basics: Models vs. Modes

First, let's distinguish between two core concepts:

  • Models: The AI engines that do the work (o3-mini, claude-3-5-sonnet, etc.)
  • Modes: Different ways of interacting with Aider (/code, /architect, /ask, /help)
@garyblankenship
garyblankenship / aider-modes.md
Created March 18, 2025 00:28
Aider Models, and Modes

Understanding Aider: Models and Modes for Developers

Part 1: Aider Basics - Getting Started with Simple Setups

If you're new to Aider, the AI coding assistant, you can start with a straightforward setup that avoids confusion. The simplest way to use Aider is with a single model:

aider --model sonnet
@garyblankenship
garyblankenship / slice-of-time.md
Created March 16, 2025 19:05
Story Outline: Slices of Time

Timeframe Vision: Sci-Fi Concept Explorations

Core Concept

A protagonist who perceives reality in discrete "slices" of time rather than the illusory continuous flow that most humans experience. Unlike others whose brains create the illusion of continuity, they perceive the void-like nothingness between frames - the terrifying non-existence that comprises most of what we call "time." This perceptual difference, initially seen as a disadvantage, becomes the foundation for extraordinary discoveries about the nature of reality.

Potential Story Directions

"Void Observer"

A physicist with this condition discovers that the "gaps" between their perceptual slices contain absolute nothingness - not darkness, but complete non-existence. This terrifying revelation leads them to understand that reality itself is discontinuous, blinking in and out of existence like frames of film with vastly more non-existence than existence. They develop methods to extend their consciousness into these void-spaces, discover