Running Claude Code with LiteLLM Proxy for Third-Party APIs in WSL-Ubuntu
This tutorial explains how to run Claude Code in a WSL (Windows Subsystem for Linux) Ubuntu environment by proxying third-party APIs (such as Poe API) through LiteLLM.
Prerequisites
WSL2 + Ubuntu (22.04 or later recommended)
Python 3.10+
Network proxy (this tutorial uses Clash as an example, port 7890, without TUN mode)
Third-party AP...
Gentoo Portage Cheat Sheet
Daily maintenance
Update the Gentoo repository
Gentoo uses rsync to update the repository. Portage proves a front-end for this:
root ~ # emerge --sync
When the connections are restricted by administrators or firewalls, Gentoo repository can be updated by fetching the latest snapshot using:
root ~ # emerge-webrsync
emerge-webrsync also gu...
Git Cheat Sheet
Create new repository
Create a new repository on the command line
git init
git commit -m "first commit"
git remote add origin git@github.com:username/repo-name.git
git push -u origin master
Push an existing repository from the command line
git remote add origin git@github.com:username/repo-name.git
git push -u origin master
Branch
Basic ...