Skip to content

Instantly share code, notes, and snippets.

View christianromney's full-sized avatar
🏠
Working from home

Christian Romney christianromney

🏠
Working from home
View GitHub Profile
@christianromney
christianromney / ollama.md
Last active August 15, 2025 21:50
Complete guide to running local AI models with Ollama - covers installation, recommended models, and OpenAI API compatibility

Ollama: Local AI Made Simple

What Problem It Solves

Ollama lets you run powerful AI models locally on your computer, giving you complete control over your AI experience.

Why Choose Local AI Over Commercial Services?

Privacy & Control

  • Your conversations and data never leave your machine
@christianromney
christianromney / jj.md
Last active August 18, 2025 13:07
🤖 Generated by Claude Code using Context7

A Short Guide to Jujutsu for Impatient Git Users

Motivation

Jujutsu (jj) is a next-generation version control system that addresses several pain points Git users face daily:

Problems jj Solves:

  • No staging area confusion - Work directly with commits, no git add complexity
  • Automatic conflict resolution workflow - No git rebase --continue dance
  • Safe history rewriting - Rebase/amend operations can't lose work
# Fish shell completions for nu-day.fish
# Fish completions work by matching command names (-c) with completion definitions.
# When you type a command and press Tab, Fish searches ~/.config/fish/completions/ for matching files.
# The 'complete' command defines completions: -c specifies the command name, -l defines long options, and -d provides descriptions.
# Complete the available options
complete -c nu-day -l help -d "Show help message"
complete -c nu-day -l skip-nucli -d "Skip updating nucli development tools"
complete -c nu-day -l skip-tokens -d "Skip AWS access token refresh"
complete -c nu-day -l skip-br -d "Skip Brazil environment AWS credentials refresh"
@christianromney
christianromney / readme.org
Created July 9, 2025 23:13
my-tube.el readme

my-tube.el

This project is a simple minor mode for Emacs to interact with the YouTube Data API v3.

What Problems Does It Solve?

This mode allows the user to perform basic YouTube playlist management from within Emacs. It does not aim to provide comprehensive coverage of the YouTube Data API.

Use Cases

Keybase proof

I hereby claim:

  • I am christianromney on github.
  • I am christianromney (https://keybase.io/christianromney) on keybase.
  • I have a public key ASDQT7Xc5VEM9sVNu2_EjdbyCizbbreD-x3qiLBzvP0-nwo

To claim this, I am signing this object:

The Socratic Method: A Practitioner’s Handbook

Chapters 1-5

  • TODO: backfill notes

Elements of the Socratic Method

  1. proceeds by question and answer
    • some questions are open ended (especially in the beginning)
    • e.g. propose a definition
    • the person being questioned is the partner of the inquirer
  2. focus on consistency of statements
    • consistency is probed with the elenchus
;; -*- geiser-scheme-implementation: 'mit -*-
(load "sdf/manager/load")
(manage 'new-environment 'combinators)
#!/bin/bash
#
# DESCRIPTION
# utility to aid in the setup of temporary AWS assumed role credentials
#
# USAGE
# pipe the output of aws sts assume-role to this script and redirect the output
# to append the temporary credentials to your $HOME/.aws/credentials
#
# you may supply a profile name as an argument. if you do not, then one is generated

Concurrency on the JVM

Thread - this class represents a thread of execution. Unit of scheduling on the CPU.

ThreadLocal - a per-thread variable not visible to other threads

ThreadGroup - a grouping that allows convenient management for set of threads

hierarchical tree

all threads can see their group, but not necessarily their group’s parent group

ForkJoinTask - a thread-like entity that is much lighter weight than a normal thread

Runnable - an interface that classes wanting to execute in a thread should implement: void run()

Future - the result of an asynchronous computation

Huge numbers of tasks and subtasks may be hosted by a small number of actual threads

@christianromney
christianromney / datomic-system-name.sh
Last active November 20, 2019 12:26
Bash script to get the Datomic Cloud system name
#!/usr/bin/env bash
set -eo pipefail
if [[ "$#" -eq 0 ]]; then
cat <<EOF
usage: $(basename $0) <REGION> [OPTIONS]
REGION - a valid AWS region e.g. us-east-1
OPTIONS - any valid AWS CLI options e.g. --profile home
EOF