Skip to content

Instantly share code, notes, and snippets.

View simonholm's full-sized avatar
:octocat:

Simon Holm simonholm

:octocat:
View GitHub Profile

Running OpenAI Codex CLI in Termux (Android, aarch64)

Problem

  • The official npm package (@openai/codex) ships prebuilt binaries (codex-aarch64-unknown-linux-musl).

  • Android’s Bionic libc rejects them with:

    error: "…/codex-aarch64-unknown-linux-musl" has unexpected e_type: 2

  • Result: the CLI doesn’t launch in Termux.

@simonholm
simonholm / register_remover.ps1
Created August 3, 2025 07:01
register remover paste
$logFile = "$env:USERPROFILE\stealth_app_monitor.log"
$scanTime = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
"`n[Scan started: $scanTime]" | Out-File -FilePath $logFile -Append
# 1. Scan LocalAppData user programs (per-user installs)
$appDirs = Get-ChildItem "$env:LOCALAPPDATA\Programs" -Directory -ErrorAction SilentlyContinue
$registeredApps = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty DisplayName
foreach ($app in $appDirs) {

ChatGPT Agent Launch Summary (Sam Altman Statement)

🆕 Product Overview

  • Name: ChatGPT Agent
  • Type: Local autonomous AI system
  • Functionality:
    • Executes complex, multi-step tasks using tools
    • Can operate over time with internal "reflection" cycles
    • Examples:
  • Personal: Buy clothes, book travel, choose gifts
@simonholm
simonholm / ai-glossary.md
Created July 17, 2025 05:40
AI interface terminology glossary

Language Model Interface Terminology Glossary

Core Interaction Terms

Term Definition
Prompt The input text or instruction you provide to the model.
Completion The generated response from the model. In chat settings, this is usually called a "response".
Output / Response Common alternative to "completion", used in most non-technical settings.
Token A small unit of text (word fragment, word, or punctuation). Models process text as tokens.
building_footprint_extraction_methods:
- name: geoai.orthogonalize()
purpose: Align polygon edges to 90° angles (orthogonal shapes)
use_case: Post-processing irregular or noisy building polygons
strengths:
- Improves realism and map readability
- Lightweight
limitations:
- May distort non-rectangular structures

Fixing a Borrow Checker Violation in Rust

This post explains a common borrow checker error in Rust and shows how to fix it using idiomatic code.


❌ Problematic Code

The original Rust code shared in a code challenge was:

🔍 Model Comparison: Gemma 3n vs Phi-4 vs LLaMA 3 (8B/70B) vs Claude 3 Sonnet vs Gemma 3

🧠 Model Capability & Deployment Overview

Feature Gemma 3n Phi-4 LLaMA 3 (8B) LLaMA 3 (70B) Claude 3 Sonnet Gemma 3
License Open (permissive) Open (permissive) Open (Meta research) Open (Meta research) Closed / Commercial Open (permissive)
Multimodal ✅ Text, image, audio, video ❌ Text only ❌ Text only ❌ Text only ✅ Text, image, vision ✅ Text + image
Context Window 128K tokens 128K toke
# =============================
# Terminal Editing Cheat Sheet
# =============================
# Emacs-style keybindings (default in Bash, Zsh)
# ----------------------------------------------
# Cursor Movement
Ctrl-A # Beginning of line
Ctrl-E # End of line

DXT Development Secret Source Documentation

The hard-won lessons from building a working Claude Desktop Extension

🚨 Critical Checks Before Starting

1. Verify Current DXT Specification

⚠️ The DXT spec changes frequently!

# Always check the latest official docs FIRST