Skip to content

Instantly share code, notes, and snippets.

View arbal's full-sized avatar
👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);

Arbal arbal

👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);
  • Los Angeles, CA
  • 23:27 (UTC -07:00)
View GitHub Profile
@alerma-sumo
alerma-sumo / README.md
Last active September 16, 2025 00:49
LiteLLM Claude Code Installation with Bun TypeScript compilation

LiteLLM Claude Code Integration

A Bun-based TypeScript package for integrating Claude Code with LiteLLM proxy authentication.

Features

  • 🚀 Bun-native: Built specifically for Bun runtime with native APIs
  • 🔐 OIDC Authentication: Automated browser-based authentication flow
  • 💾 Session Caching: Intelligent session management with validation
  • Compiled Executable: Single binary deployment via bun build --compile
@musistudio
musistudio / gemini-cli.js
Last active October 27, 2025 13:26
GeminiCLITransformer
const os = require("os");
const path = require("path");
const fs = require("fs/promises");
const OAUTH_FILE = path.join(os.homedir(), ".gemini", "oauth_creds.json");
// Type enum equivalent in JavaScript
const Type = {
TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED",
STRING: "STRING",
@arbal
arbal / move-conda-envs.sh
Created April 8, 2025 17:46 — forked from NucciTheBoss/move-conda-envs.sh
Move conda environments to a new location on your Linux system.
#!/usr/bin/env bash
echo "Begin environment relocation."
NEW_ENV_DIR=$1
BASE_ENV=$(conda info --base)
#########################################
#
# Install jq locally
#
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active October 28, 2025 03:11
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@wsuff
wsuff / amucfg.py
Last active July 4, 2025 01:48
amucfg.py: Automating AI Model Metadata for Aider with OpenRouter
import requests
import json
import os
import time
import yaml
import argparse
import re
from datetime import datetime
OPENROUTER_API_BASE = "https://openrouter.ai/api/v1"
@matthewhand
matthewhand / .env.example
Last active September 11, 2025 19:23
LiteLLM Load Balancing with free endpoints (nested configs)
SAMBANOVA_API_KEY=
GEMINI_API_KEY=
HUGGINGFACE_API_KEY=
HYPERBOLIC_API_KEY=
OPENAI_API_KEY=
GROQ_API_KEY=
XAI_API_KEY=
OPENROUTER_API_KEY=
COHERE_API_KEY=
TOGETHERAI_API_KEY=
@Nerahikada
Nerahikada / compose.yml
Created October 6, 2024 09:36
run mitmproxy with tailscale (docker compose)
services:
tailscale:
image: tailscale/tailscale:latest
environment:
- TS_HOSTNAME=mitmproxy
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
volumes:
- ./tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
@NotYusta
NotYusta / proxmox_automatic_boot_order.sh
Last active May 2, 2025 07:34
Proxmox Automatic Boot Order - <vm-id>
#!/bin/bash
# Check if exactly one argument (vm-id) is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <vm-id>"
exit 1
fi
VMID="$1"
@varenc
varenc / !README.md
Last active July 15, 2024 12:12
Install iCloud3 v3.0.5.2 quick fix for Home Assistant 2024.7.x

This script just automates the fix described in gcobb321/icloud3#356 by @gcobb321 for fixing iCloud v3.0.5.2 compatability with Home Assistant 2024.7.x

I took some attempts to be safe but use at your own risk!

To run it just ssh into your HA server, then fetch the file below and evaluate it with bash.

$ wget "https://gist.githubusercontent.com/varenc/243eeed5622f0e749367b2f9e9d73a38/raw/icloud3_quick_fix.sh"
$ bash icloud3_quick_fix.sh
from txtai import Embeddings, LLM
# Data to index
data = [
"US tops 5 million confirmed virus cases",
"Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"