Skip to content

Instantly share code, notes, and snippets.

View thomasht86's full-sized avatar

Thomas Hjelde Thoresen thomasht86

View GitHub Profile
@thomasht86
thomasht86 / setup.sh
Last active January 3, 2026 17:12
Claude code on mobile
#!/bin/bash
#
# Mobile Claude - One-command setup for running Claude Code remotely
# Supports: Arch, Ubuntu/Debian, Fedora, macOS
#
# Usage: curl -fsSL https://gist.github.com/thomasht86/86f0f8f62db1839054abd8a7e501ff7d/raw/935bbfa0957cd5926751742189441cf10fbe2ba0/setup.sh | bash
#
set -e
@thomasht86
thomasht86 / onnx-export.py
Created January 5, 2026 07:44
ONNX export sentence-transformers
from sentence_transformers import (
SentenceTransformer,
export_optimized_onnx_model,
export_dynamic_quantized_onnx_model,
)
# 1. Load the model to be optimized with the ONNX backend
model = SentenceTransformer(
"IEITYuan/Yuan-embedding-2.0-en",
backend="onnx",
#!/bin/bash
# Fake "hacker" screen — totally harmless
echo "INITIATING SYSTEM OVERRIDE..."
for i in $(seq 1 20); do
echo "[$(date +%T)] Accessing sector $((RANDOM % 9999))... OK"
sleep 0.2
done
echo ""
echo "████████████████████████████"
echo "██ YOU HAVE BEEN PWNED! ██"