Skip to content

Instantly share code, notes, and snippets.

View michaelneale's full-sized avatar
😀
Not updating github status

Michael Neale michaelneale

😀
Not updating github status
View GitHub Profile
#!/bin/bash
set -e
# Configuration
PORT=62996
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Check for goosed binary in multiple locations
if command -v goosed &> /dev/null; then
# goosed is on PATH
@michaelneale
michaelneale / gist:8372cef5c529f04e137445871a7f4709
Last active October 2, 2025 03:15
goosed api surface review
Having implemented a swift client to goosed (and others), some feedback on it as a general api:
Improvements:
* making it easy to start a blank session with config "as is" on disk: ie provider, and extensions, should be one shot (vs now which is many calls)
* goose-server/ui/desktop/openapi.json can be removed, not sure why it is there. It may also be possible to get rid of the ui/desktop/openapi.json and just generate it on the fly, not commit?
* we use a simple api key approach, might be nicer to specify a non shared secret approach with PKI (but still easy to implement from client side)
Tidy ups/Questions:
* extensions are listed in /config, but enabled in /extensions/add endpoint, which seems kind of inconstent
* you can add/remove to /extensions, but not clearly documented if you can (and what it means) to add a non enabled extension.
#!/bin/bash
# Git Work Summary Script
echo "========================================="
echo "GIT WORK SUMMARY"
echo "========================================="
echo ""
# Get current git user
@michaelneale
michaelneale / pre comit hook
Created February 2, 2025 22:13
goose-check.sh
#!/bin/sh
# Run Goose AI check on staged files
files=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.txt$|\.md$|\.rst$')
if [ -z "$files" ]; then
exit 0
fi
echo "Running Goose AI spell check..."
  1. install ollama

brew install ollama

  1. check you can run deepseek:

ollama run deepseek-r1:14b

(bigger model is better - if you can run 70B that is amazing!)

@michaelneale
michaelneale / example_usage.go
Created December 9, 2022 02:02
ChatGPT writes a golang key/value store abstraction
store := &InMemoryKVStore{data: make(map[string]string)}
store.Set("key1", "value1")
value, err := store.Get("key1")
if err != nil {
// handle error
}
store.Delete("key1")
results, err := store.Query("value")
if err != nil {
// handle error

Explain code

This uses AI to read and try and understand the code, and explain it back to you:

example:

curl --request POST --header 'Content-Type: application/json' \
--url https://us-east1-micprojects.cloudfunctions.net/ai-code-explainer 
This is a riddle solver.
###
Riddle: Whats black and white and red all over?
Answer: A newspaper
###
Riddle: What dries by getting wet?
Answer: A towel
def honeycomb_setup() {
script {
env.STEP_START = sh(script:'date +%s', returnStdout: true).trim()
env.STEP_SPAN_ID = sh(script:'uuidgen', returnStdout: true).trim()
}
}
def install_buildevents() {
sh"""
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64 curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64
chmod 755 buildevents