Skip to content

Instantly share code, notes, and snippets.

View tbensonwest's full-sized avatar

Tarran Benson-West tbensonwest

View GitHub Profile
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
grep [PATTERN] [FILE]
grep apple fruitlist.txt
grep apple *.txt
grep ^app fruitlist.txt
"-x :: exact line
grep -x apple fruitlist.txt
version: "3"
services:
pmm-server:
image: "perconalab/pmm-server:dev-latest"
ports:
- "443:443"
environment:
- SERVER_USER=pmm
- SERVER_PASSWORD=pmm
@tbensonwest
tbensonwest / LXCBindMount.md
Created November 7, 2021 20:19 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.

@tbensonwest
tbensonwest / langgraph_builder.py
Created September 29, 2024 15:18 — forked from rvndbalaji/langgraph_builder.py
Utility class to build dynamic langgrah agents
import base64
import functools
import operator
from typing import *
from typing import Annotated, Any, Dict, List, Sequence
from dto.chat import *
from dto.graph import *
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain.tools import BaseTool
@tbensonwest
tbensonwest / claude-sparc.md
Created June 8, 2025 20:58 — forked from ruvnet/*claude.md
The Claude-SPARC Automated Development System is a comprehensive, agentic workflow for automated software development using the SPARC methodology with the Claude Code CLI

Claude-SPARC Automated Development System For Claude Code

Overview

The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.

Features

  • Comprehensive Research Phase: Automated web research using parallel batch operations
  • Full SPARC Methodology: Complete implementation of all 5 SPARC phases