Skip to content

Instantly share code, notes, and snippets.

@mihaiparaschiv
mihaiparaschiv / .tmux.conf
Last active September 7, 2017 16:53
Docker container with Docker, Google Cloud Console, tmux and other tools
set-option -ga update-environment ' PATH'
# 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
@mihaiparaschiv
mihaiparaschiv / .profile
Created September 7, 2017 16:58
Git Bash bootstrap for Windows
echo Executing .profile
source /d/env-tools/bash-setup.sh
@mihaiparaschiv
mihaiparaschiv / docker-stats-all.sh
Created September 7, 2017 17:00
Docker utility commands
docker stats $(docker ps --format={{.Names}})
@mihaiparaschiv
mihaiparaschiv / setup-tmux-example.sh
Last active March 21, 2020 01:12
Utility scripts to create a tmux session
tmux new-window -n analysis -c /d/work/example
cd /g/work/a-analytics
tmux select-window -t analysis
tmux split-window -v -p 80
tmux select-pane -t 0
tmux send-keys "cd run/analysis-local" C-m
tmux send-keys "ls -la" C-m
tmux select-pane -t 1
tmux send-keys "ls -la" C-m
tmux split-window -h