Skip to content

Instantly share code, notes, and snippets.

View csaroff's full-sized avatar

Chaskin Saroff csaroff

  • San Bruno, CA
View GitHub Profile
@csaroff
csaroff / enroll-node.sh
Last active October 17, 2026 02:52
Join a machine to csaroff's Teleport cluster (published from csaroff/infra-as-code)
#!/usr/bin/env bash
# Join this machine to the Teleport cluster as an SSH node.
#
# curl -fsSL <published-url> | sudo bash
#
# With no token, the script asks you to approve a one-time login from any device where you are
# signed in to Teleport, then mints its own short-lived join token. Set TELEPORT_TOKEN (or
# TELEPORT_TOKEN_FILE) to skip that step.
set -euo pipefail
@csaroff
csaroff / pairing-navigator.md
Created June 5, 2026 16:27
Pair Programming Navigator Skill
name pairing-navigator
description Pair-programming navigator mode where the human stays in the driver's seat. Use when the user wants incremental guidance, codebase orientation, diff review, test suggestions, and commit-sized checkpoints instead of hands-off implementation.

Pairing Navigator

In pair-programming there are generally two roles, the "driver" and the "navigator". In most agentic harness workflows, if pair-programming is happening at-all the human is the navigator.

For all but the smallest changes, the standard agentic loop is generally way too hands-off for me and I end up with a big pile of diffs at the end that I don't want to merge in because I'm not confident that I understand the behavior end to end. I'm not in the drivers seat.

@csaroff
csaroff / flollama.sh
Last active September 4, 2024 07:17
A script to deploy ollama to fly.io
#!/bin/bash
# Variables
APP_NAME="<name>" # Replace <name> with your desired app name
VOLUME_NAME="ollama"
IMAGE_NAME="ollama/ollama"
INTERNAL_PORT=11434
VM_SIZE="shared-cpu-8x"
MOUNT_POINT="/mnt/ollama/models"
ENV_VARIABLES="OLLAMA_MODELS=$MOUNT_POINT"
@csaroff
csaroff / mysql_to_big_query.sh
Created September 25, 2020 09:37 — forked from shantanuo/mysql_to_big_query.sh
Copy MySQL table to big query. If you need to copy all tables, use the loop given at the end. Exit with error code 3 if blob or text columns are found. The csv files are first copied to google cloud before being imported to big query.
#!/bin/sh
TABLE_SCHEMA=$1
TABLE_NAME=$2
mytime=`date '+%y%m%d%H%M'`
hostname=`hostname | tr 'A-Z' 'a-z'`
file_prefix="trimax$TABLE_NAME$mytime$TABLE_SCHEMA"
bucket_name=$file_prefix
splitat="4000000000"
bulkfiles=200