Skip to content

Instantly share code, notes, and snippets.

@olimorris
olimorris / config.local.lua
Created October 17, 2026 08:45
CodeCompanion testing harness for the `edit_file` tool
-- Configuration for automated tool testing
-- Copy this to config.local.lua and add API keys - calling test.sh setup will create that file
-- Scenarios live in scenarios/*.lua — add new scenarios by dropping a file there
local M = {}
-- Adapter matrix - override in config.local.lua to test a different set
M.adapters = {
{
name = "openrouter",
@olimorris
olimorris / nvim-treesitter.rb
Created April 12, 2026 08:52
Tree-sitter in Neovim without nvim-treesitter
#!/usr/bin/env ruby
# frozen_string_literal: true
require "fileutils"
require "tmpdir"
TREESITTER_DIR = File.expand_path("~/.local/share/nvim/treesitter")
PARSER_DIR = File.join(TREESITTER_DIR, "parser")
QUERIES_DIR = File.join(TREESITTER_DIR, "queries")
@olimorris
olimorris / Dockerfile
Last active May 31, 2024 16:23
Use Docker to install MS-SQL Server 2017 with Full Text Search and MS-SQL Tools
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS
FROM ubuntu:16.04
# Install curl since it is needed to get repo config
# Get official Microsoft repository configuration
RUN export DEBIAN_FRONTEND=noninteractive && \