Skip to content

Instantly share code, notes, and snippets.

@vinnnyr
vinnnyr / tmux.conf
Created April 6, 2021 14:11
tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
@vinnnyr
vinnnyr / run_docker_with_x11.sh
Created August 5, 2020 23:19
Run a Docker image with X11 automatically configured
#s is not the safest way however, as you then compromise the access control to X server on your host
xhost +local:root # for the lazy and reckless
# replace nav2/vinny with the name of your image obviously
docker run -it --env="DISPLAY" --network="host" --privileged -v /dev:/dev --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" nav2/vinny
export containerId=$(docker ps -l -q)
# Close security hole:
xhost -local:root