Skip to content

Instantly share code, notes, and snippets.

View iainlane's full-sized avatar
🔫
gg nextmap

Iain Lane iainlane

🔫
gg nextmap
View GitHub Profile
@iainlane
iainlane / anthropic_manifold_pipeline.py
Created June 6, 2025 09:56
Reworking of the anthropic manifold pipeline for open-webui, to support fetching models dynamically, thinking budgets and streaming/not-streaming.
"""
title: Anthropic Manifold Pipe
authors: justinh-rahb and christian-taillon. significantly refactored by iainlane
author_url: https://github.com/justinh-rahb
funding_url: https://github.com/open-webui
version: 2.0
required_open_webui_version: 0.3.17
license: MIT
"""
#!/usr/bin/env bash
# vim: tabstop=4:shiftwidth=4:softtabstop=4:expandtab:autoindent
# This script is a wrapper to add --buildkitd-config to a `docker buildx create`
# command if it wasn't provided by the caller.
#
# `docker buildx create` has no concept of a default configuration. But an
# organisation might want to, for example, always use a particular registry
# mirror. With this script, you can provide a default buildkit config, which
# will be applied for `docker buildx create` commands that do not have a

The Docker Credential Helper Tragedy: A Structural Analysis

In the annals of technical documentation, few works achieve the synthesis of classical form and contemporary frustration quite like "Η Τραγωδία του Docker Credential Helper." This modern Greek tragedy transposes the immutable laws of container configuration into the framework of ancient dramatic convention, creating a work that functions simultaneously as technical warning and literary parody.

Understanding Greek Tragic Structure

Before examining how our Docker tragedy achieves its effects, we must briefly review the formal elements of ancient Greek tragedy. These dramas followed a rigid five-part structure:

  1. Πρόλογος (Prologue): The opening exposition, delivered before the chorus enters, establishing the dramatic situation and central conflict.
@iainlane
iainlane / iain.md
Last active January 25, 2025 10:57
graph TD
    %% Legend as a subgraph
    subgraph Legend["Legend"]
        direction LR
        L1["Hebrew Origin"]
        L2["Irish Forms"]
        L3["Scots Forms"]
        L4["Historical Forms"]
        L5["Diminutives"]
#!/usr/bin/env python3
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from dateutil import parser
# Custom date parser
def custom_date_parser(date_string):
date_string = date_string.split(" ")[0] + " " + date_string.split(" ")[1]
#!/usr/bin/env bash
# Usage: retry <num-retries> <command> [arguments]
function retry {
local retries=$1
shift
local cmd=("$@")
case "${retries}" in
'' | *[!0-9]*)
// wait-for-github-pr
// Copyright (C) 2022, Grafana Labs
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
#!/bin/bash
set -euo pipefail
usage() {
echo "$0 [owner] [repo] [sha]" >&2
}
if [ "${GITHUB_TOKEN:-}" = "" ]; then
usage
#!/bin/bash
set -e
set -x
vop=/opt/vyatta/bin/vyatta-op-cmd-wrapper
vcfg=/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper
# Hostnames to look up