Skip to content

Instantly share code, notes, and snippets.

@vpzed
vpzed / pai30-env-template.sh
Last active February 22, 2026 15:23
PAI 3.0 env.sh style template for use with CLAUDE_ENV_FILE
#!/usr/bin/env bash
# PAI 3.0 Environment Variables Template — env.sh / CLAUDE_ENV_FILE Edition
# Generated: 2026-02-16 | Adapted for Claude Code CLAUDE_ENV_FILE: 2026-02-20
#
# SETUP INSTRUCTIONS:
# 1. Copy: cp pai30-env-template.sh $HOME/.config/PAI/pai-env.sh
# 2. Lock down: chmod 600 $HOME/.config/pai-env.sh
# 3. Fill in: Uncomment (remove #) from lines you need and add real keys
# 4. Register: export CLAUDE_ENV_FILE="$HOME/.pai-env.sh"
# (add to ~/.bashrc / ~/.zshrc for persistence)
@vpzed
vpzed / env.template
Created February 18, 2026 00:04
Draft PAI 3.0 env template
# PAI 3.0 Environment Variables Template
# Generated: 2026-02-16 by PAI 3.0
#
# IMPORTANT: Never commit .env files to version control!
#
# =============================================================================
# AI/ML SERVICES
# =============================================================================
@vpzed
vpzed / env.template
Last active January 25, 2026 20:59
PAI 2.4.0 env.template
# PAI Environment Configuration Template
# Copy to .env and fill in your API keys:
# cp env.template .env
#
# Keys are loaded by PAI tools from ~/.claude/.env
# ============================================================================
# CORE AI SERVICES
# ============================================================================

Setting up PAI v2.1.0 on a fresh Debian 13 virtual machine

IMPORTANT: As of January 09, 2025

This is a guide for humans. The intent is to cover pre-requisite items to smooth the PAI installation process.

Base Virtual Machine

Debian 13 virtual machine

  • Built with standard debian-13.*.*-amd64-netinst.iso
@vpzed
vpzed / mock.py
Last active December 22, 2022 22:25
Simple asyncpg test script with jsonb field (python 3.6.3, Postgres 10.0, and asyncpg 0.13.0)
#!/usr/bin/env python
# Use /usr/bin/env python to support virtual environments
# This script is for Python > 3.6
# -*- coding: utf-8 -*-
"""
Test loading mock initial alliances data into a test table with asyncpg and Postgres
"""
import datetime
import json
@vpzed
vpzed / postgresql.txt
Created October 16, 2017 16:08
PostgreSQL prototyping
PostgreSQL:
user A (non-super-user admin account with createdb and createuser)
destiny database:
# main destiny database
user X (job account with read/write)
user Y (api account with read-only)
alliance table:
# Manually created reference info for "meta-clan" groupings
@vpzed
vpzed / manifest_plumbing.py
Created October 9, 2017 00:43
Get manifest files from destiny.plumbing
#!/usr/bin/env python
"""
TEST code for using destiny.plumbing
"""
import os
import sys
import requests
def main():