Skip to content

Instantly share code, notes, and snippets.

View torson's full-sized avatar

Tomaz Strukelj torson

View GitHub Profile
@mnpenner
mnpenner / aijail.sh
Last active December 15, 2025 13:00
A jail for LLMs
#!/usr/bin/env bash
{
set -euo pipefail
# --- Verify HOME (we bindmount a bunch of $HOME paths) ---
if [[ -z "${HOME-}" || "$HOME" == "/" ]]; then
echo "[error] HOME is empty/invalid: '${HOME-}'" >&2
exit 1
fi
@jeremyvaught
jeremyvaught / bashrc.md
Last active February 10, 2024 08:49
Updating my Homestead (Ubuntu 14.04) prompt to show git status

First off, I shamelessly stole this from http://www.bramschoenmakers.nl/en/node/624 But I wanted to be able to find it quickly

  • ssh into your Homestead vagrant box
  • Update the Ubuntu packages with sudo apt-get update
  • Install bash-completion with sudo apt-get install bash-completion
  • Open up your .bashrc file by with vim ~/.bashrc
  • Toward the top (somewhere above where the PS1= is) add this
# Bash completion
if [ -f /etc/bash_completion ]; then
@kra3
kra3 / eq.preset
Created March 26, 2014 12:11
Audacious presets: ~/.config/audacious/eq.preset
[Presets]
Preset0=Classical
Preset1=Club
Preset2=Dance
Preset3=Flat
Preset4=Live
Preset5=Laptop Speakers/Headphone
Preset6=Rock
Preset7=Pop