Skip to content

Instantly share code, notes, and snippets.

View aptdnfapt's full-sized avatar
😸
cat

idcbtw aptdnfapt

😸
cat
View GitHub Profile
@dustyfresh
dustyfresh / tshark.md
Last active February 12, 2026 20:25
Systemd service to capture all traffic on ports 53/80/443. tshark will store up to 10MB of data per pcap file, and keep store up to 2GB of captures on disk. Once 2GB disk limit is reached, tshark will rotate older pcaps. Change the filecount in the capture script if you want to store more traffic on disk.

Continuous capture

Tested on Ubuntu 18.04.

Install tshark

You will want to allow non-root users to capture packets. These users must be part of the wireshark group.

$ sudo apt update
@olafgeibig
olafgeibig / cc-proxy.sh
Last active March 2, 2026 08:04
A LiteLLM proxy solution to use Claude Code with models from the Weights and Biases inference service. You need to have LiteLLM installed or use the docker container. Easiest is to install it with `uv tool install "litellm[proxy]"` Don't worry about the fallback warnings. Either LiteLLM, W&B or the combo of both are not handling streaming respon…
#!/bin/bash
export WANDB_API_KEY=<your key>
export WANDB_PROJECT=<org/project>
litellm --port 4000 --debug --config cc-proxy.yaml
@SaseQ
SaseQ / config.json
Last active March 9, 2026 22:42
Atlassian Rovo Dev CLI transformer for Claude Code Router
{
"transformers": [
{
"path": "$HOME/.claude-code-router/plugins/rovo-cli.js",
"options": {
"email": "ROVO_DEV_EMAIL",
"api_token": "ROVO_DEV_API_TOKEN"
}
}
],
class ChutesGLMTransformer {
constructor(options = {}) {
this.name = "chutes-glm";
this.endPoint = "/v1/chat/completions";
this.enable = options.enable ?? true;
}
async auth(request, provider) {
return {
body: request,
@chandika
chandika / FACTORY_PROXY_CC.md
Last active April 6, 2026 13:05 — forked from ben-vargas/FACTORY_CLIProxyAPI_Claude_ChatGPT.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.

Architecture Overview

Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
                                                  ↓
 (Auth Header Swap)