Skip to content

Instantly share code, notes, and snippets.

View rhuss's full-sized avatar

Roland Huss rhuss

View GitHub Profile
@rhuss
rhuss / openshell-dev
Created June 26, 2026 16:02
openshell-dev: Manage a dev OpenShell environment built from source (gateway, supervisor image, CLI)
#!/usr/bin/env python3
"""Manage a dev OpenShell environment built from source.
Unified tool for gateway lifecycle, supervisor image builds,
CLI symlinks, log management, and brew service coordination.
"""
import argparse
import os
import platform
@rhuss
rhuss / voice-transcribe.sh
Created June 11, 2026 09:16
Local mic-to-text transcription using ffmpeg + whisper-cli (macOS)
#!/usr/bin/env bash
#
# voice-transcribe.sh - Local microphone-to-text transcription
#
# Captures audio from the default microphone using ffmpeg (avfoundation),
# detects speech segments via energy-based VAD, and transcribes each
# utterance with whisper-cli. Transcripts are printed to stdout and
# optionally appended to a file.
#
# Dependencies: ffmpeg, whisper-cli (brew install ffmpeg whisper-cpp)
@rhuss
rhuss / gist:56079081688ae1b54433542d446ce529
Last active May 22, 2026 12:04
Claude Code in OpenShell 0.0.46 on macOS/Podman (libkrun): complete working setup

Claude Code in OpenShell 0.0.46 on macOS/Podman (libkrun)

Environment

  • macOS 26.5, arm64
  • Podman 5.8.2 (VM type: libkrun)
  • OpenShell 0.0.46 (Homebrew)
  • Claude Code v2.1.148
  • Auth: Google Vertex AI (Application Default Credentials)
@rhuss
rhuss / Containerfile
Created May 20, 2026 08:31
OpenShell sandbox Containerfile for Claude Code (cc-deck) - reproduces getifaddrs issue with Vertex AI auth
# GENERATED BY cc-deck.build --target openshell - DO NOT EDIT MANUALLY
# Regenerate with: claude /cc-deck.build --target openshell
FROM ghcr.io/nvidia/openshell-community/sandboxes/base:latest
ARG TARGETARCH
# Layer: System packages (Ubuntu 24.04, apt-get)
# Pre-installed: git, node v22, npm, python3, curl, make, claude, gh, uv
USER root
@rhuss
rhuss / migrate_influx_db.pl
Last active January 5, 2021 20:18
Migration script for migration from a very old InfluxDB installation to a recent version (e.g. 0.7.0 to 1.8.3)
use InfluxDB;
use Data::Dumper;
use REST::Client;
use strict;
# Script for migrating data from an outdated InfluxDB to one of the
# latsest version.
# Developed for migrating from an InfluxDB 0.7.0 to a 1.8.3 version in one go
# ------------------------------------------------------------------------
@rhuss
rhuss / Dockerfile
Last active June 22, 2020 21:33
Restic + Rclone for ARM
FROM golang:1.13.10-buster AS builder
ARG VERSION_RESTIC=v0.9.6
ARG VERSION_RCLONE=v1.51.0
WORKDIR /opt
RUN apt-get update \
&& apt-get install -y \
git \
@rhuss
rhuss / knative-setup.sh
Created March 8, 2020 09:08
Knative Setup Script
#!/usr/bin/env bash
set -e
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
# $ NO_COLOR=1 test.sh
NO_COLOR=${NO_COLOR:-""}
if [ -z "$NO_COLOR" ]; then
#!/usr/bin/env bash
set -e
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
# $ NO_COLOR=1 test.sh
NO_COLOR=${NO_COLOR:-""}
if [ -z "$NO_COLOR" ]; then
@rhuss
rhuss / console.md
Created April 5, 2019 21:46
CRDs with multiple version on OpenShift
$ kubectl get crd | grep crontab
crontabs.example.com                                                     2019-04-05T21:33:36Z

$ kubectl get crontab
NAME      AGE
new-tab   6m
old-tab   5m

$ kubectl get crontab old-tab -o yaml