Skip to content

Instantly share code, notes, and snippets.

View darinkishore's full-sized avatar

Darin darinkishore

View GitHub Profile
@darinkishore
darinkishore / user-setup.sh
Created May 31, 2025 22:45
User Dev Setup - For Lambda/HPC clusters with existing user accounts
#!/bin/bash
# User Setup - For when you already have a user account (Lambda, etc)
# Just run this as your normal user, it'll use sudo when needed
set -e
echo "🚀 User Dev Setup - For existing accounts"
echo "========================================"
echo "Running as: $USER"
echo ""
@darinkishore
darinkishore / simple-setup.sh
Created May 31, 2025 22:41
Simple GPU Dev Setup - Just Essentials: developer user, Node.js via mise, Python with uv, Claude Code CLI, VSCode SSH compatibility
#!/bin/bash
# Simple GPU Dev Setup - Just the essentials, no BS
# Core: developer user, Node.js, Python/uv, Claude Code, VSCode SSH support
set -e
echo "🚀 Simple Dev Setup - Essentials Only"
echo "===================================="
# Must be root
@darinkishore
darinkishore / quick-setup-auto.sh
Last active May 31, 2025 22:13
Fully Automated GPU Development Environment Setup Script - No prompts, installs Fish, Helix, dev tools, Node.js 22, Python/uv, and Claude Code CLI
#!/bin/bash
# Ultimate setup script - fixes workspace permissions too
# Works in minimal containers and GPU platforms
set -e
echo "🚀 GPU Dev Environment Setup"
echo "============================"
echo ""
@darinkishore
darinkishore / quick-setup.sh
Created May 31, 2025 21:42
GPU Dev Environment Quick Setup - Master script that orchestrates complete development environment setup including tools, shells, and configurations
#!/bin/bash
# Master setup script that orchestrates the complete dev environment setup
# This runs all setup scripts in the correct order
set -e
echo "🚀 GPU Dev Environment Quick Setup"
echo "=================================="
echo ""
@darinkishore
darinkishore / container-setup.sh
Last active May 31, 2025 21:53
One-command setup script for SF Compute containers - installs dev tools, mise, uv, Node.js, and Claude Code
#!/bin/bash
# Robust setup script that works in minimal containers
# Works even without sudo pre-installed
set -e
echo "🚀 Starting dev environment setup..."
# First, ensure we're running as root
if [ "$EUID" -ne 0 ]; then
@darinkishore
darinkishore / gh-auth.sh
Created May 31, 2025 21:35
GitHub CLI authentication helper - provides interactive options for web browser or token-based authentication
#!/usr/bin/env bash
# Helper script to authenticate with GitHub CLI
set -euo pipefail
echo "GitHub CLI Authentication Helper"
echo "================================"
echo ""
echo "This will help you authenticate with GitHub to clone private repos."
echo ""
@darinkishore
darinkishore / setup-env.sh
Created May 31, 2025 21:35
Development environment setup script - checks SSH keys, GitHub auth, and displays installed tool versions
#!/usr/bin/env bash
# Quick setup script for first run
set -euo pipefail
echo "Setting up development environment..."
echo ""
# Check if SSH keys are mounted
if [ -d "$HOME/.ssh" ] && [ -n "$(ls -A $HOME/.ssh)" ]; then
@darinkishore
darinkishore / claudette_dense.xml
Created February 25, 2025 19:37
claudette dense docs
<docs>
<title>Claudette: A High-Level Claude Interface</title>
<design_philosophy>
<explanation>
Core design principles that inform all features:
1. State Management:
- Chat maintains its own context
@darinkishore
darinkishore / semantic_adapter.py
Created February 25, 2025 02:17
Reasoning Model DSPy adapter
import ast
import enum
import inspect
import json
import re
from typing import Any, Literal
from dspy.adapters.base import Adapter
from dspy.adapters.image_utils import try_expand_image_tags
from dspy.adapters.utils import get_annotation_name, serialize_for_json