Skip to content

Instantly share code, notes, and snippets.

View vmikk's full-sized avatar
:octocat:

Vladimir Mikryukov vmikk

:octocat:
View GitHub Profile
@vmikk
vmikk / sbx.sh
Created November 10, 2025 09:02
Run shell commands in a lightweight sandbox (using `bubblewrap`)
sbx() {
: '
sbx - run a command in a minimal bubblewrap sandbox
Overview:
- Only the current working directory has read-write permissions and allows persistent changes
- Host filesystem mounted read-only
- /proc and /dev are also sandboxed
- Existing PATH/env are kept, so system + conda tools work normally