Skip to content

Instantly share code, notes, and snippets.

View MarcinZukowski's full-sized avatar

Marcin Zukowski MarcinZukowski

View GitHub Profile
@MarcinZukowski
MarcinZukowski / X11-in-docker.md
Last active November 25, 2024 07:48
Making X work inside docker

Making X11 apps work inside docker

TL;DR

xhost +local:docker
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix ...

Details

Every now and then I want to run X apps inside docker, and then I always hit some issues.

@MarcinZukowski
MarcinZukowski / bashrc
Created March 6, 2019 21:48
Automatically saving joe backup files in a temporary directory, versioned by minute
# For joe - put backups in a separate directory, and version per minute
mkdir -p $HOME/tmp/joe-backup
alias joe="joe --backpath $HOME/tmp/joe-backup"
export PROMPT_COMMAND=$PROMPT_COMMAND'export SIMPLE_BACKUP_SUFFIX=-`date +%Y%m%d-%H%M`;'