Skip to content

Instantly share code, notes, and snippets.

View u1i's full-sized avatar

Uli u1i

View GitHub Profile
@u1i
u1i / set-env.sh
Created May 3, 2026 04:15
Xiaomi Claude Code
export XIAOMI_API_KEY="tp-XXX"
export ANTHROPIC_BASE_URL="https://token-plan-sgp.xiaomimimo.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$XIAOMI_API_KEY"
export ANTHROPIC_API_KEY="" # This must be explicitly empty
export ANTHROPIC_DEFAULT_OPUS_MODEL=mimo-v2.5-pro
export ANTHROPIC_DEFAULT_SONNET_MODEL=mimo-v2.5
export TERM=xterm-256color
@u1i
u1i / .screenrc
Created May 3, 2026 04:14
Claude Code in GNU Screen
# Force screen to use 256 colors
term screen-256color
# Tell screen to allow 256 color programs
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defscreenrc 256
@u1i
u1i / info.txt
Created March 29, 2026 04:26
ollama increase context window
ollama run qwen3.5:9b
/set parameter num_ctx 128000
/save llama3.1-128k
/set parameter num_ctx 262144
/save qwen3.5-256k
@u1i
u1i / prompt.txt
Created February 2, 2026 01:43
Uli Pokémon Card - Prompt
A physical Pokémon card lying on a wooden table, slightly worn with soft edges and minor creases showing it's been well-loved. The card features a portrait of the person in the uploaded photo.
Card details:
- Name: Uli Hitzel
- HP: 365 (coffee-powered)
- Type: AI Technologist
- Stage: Evolved from Software Engineer
Abilities:
- "Ecosystem Builder" - Connects startups, enterprises, and academia
@u1i
u1i / doit.sh
Created January 29, 2026 10:50
Video ffmpeg strip content credentials
ffmpeg -i input.mp4 -map 0 -map_metadata -1 -c copy output.mp4
@u1i
u1i / run-redis.sh
Created November 6, 2025 04:59
Run Redis on a specific port and dedicated config file
#!/bin/bash
# Check if a port number was provided
if [ -z "$1" ]; then
echo "Usage: $0 <port_number>"
echo "Example: $0 6380"
exit 1
fi
PORT=$1
@u1i
u1i / README.md
Created September 2, 2025 00:28
Qwen Image Models on Lambda AI

Qwen Image Models Setup on Lambda Labs GPU

Complete step-by-step guide to set up and run both Qwen-Image (text-to-image) and Qwen-Image-Edit (image editing) on Lambda Labs cloud GPU instances.

Prerequisites

  • Lambda Labs account
  • SSH key pair generated

Step 1: Instance Setup

@u1i
u1i / README.md
Created August 15, 2025 09:11
MacOS proxify app

brew install proxychains-ng

/opt/homebrew/etc/proxychains.conf

[ProxyList] socks5 127.0.0.1 8080

proxychains4 /Applications/Abc/Content/MacOS/Abc

@u1i
u1i / prompt.txt
Created July 24, 2025 01:45
godzilla-sg.txt
Aerial drone photo of Godzilla breaching Marina Bay, shot from directly overhead. The monster's massive dorsal plates slice through the bay's turquoise water, leaving a violent wake that crashes against the Esplanade's glass domes. Marina Bay Sands' three towers and SkyPark are perfectly framed in the upper right, giving scale to the creature's enormity. Below, traffic has stopped on the Helix Bridge as tiny figures scatter. Saltwater sprays in crystalline arcs under harsh midday sun, creating prismatic light effects. The beast's charcoal-black hide shows battle scars and barnacles, with realistic water beading and streaming off its ridged back. Helicopters hover at a safe distance, their rotors whipping up additional spray patterns. The entire scene maintains photojournalistic authenticity – motion blur on fleeing crowds, accurate shadows and reflections, heat haze rising from the monster's body.
@u1i
u1i / prompt.txt
Created July 22, 2025 05:15
Singapore 2049 Image Prompt
Ultra-realistic aerial photograph of Singapore in 2049, shot from the height of a 15th-storey apartment. The familiar Marina Bay Sands still stands, its once-pristine infinity pool now edged by a discreet sea-wall. Victoria and Clifford Piers have become a dense lattice of timber boardwalks on reclaimed concrete pylons, connecting to new three-storey stilt houses painted in the same pastel palette as HDB blocks—just higher. The Singapore River, now tidal, laps at the base of Raffles Place; glass towers still glint, but their ground floors have been retro-fitted with roll-down flood barriers in brushed aluminium. Across the bay, Gardens by the Bay remains instantly recognisable, yet the Supertree Grove is crowned with thin photovoltaic canopies angled against stronger sun. To the left, the ArtScience Museum’s lotus petals are half-submerged; a new pedestrian bridge—simple precast concrete segments on galvanized piles—cuts straight from its steps to Merlion Park, now relocated a few metres up-slope on a modest