Skip to content

Instantly share code, notes, and snippets.

View LuighiV's full-sized avatar
🏠
Working from home

Luighi Viton-Zorrilla LuighiV

🏠
Working from home
View GitHub Profile
@smxsm
smxsm / gist:67a348b79d5cd4119c24b5902ba56f53
Created June 9, 2017 12:40
jwilder/nginx-proxy - Check if Docker network and container exist
#!/bin/bash
##########################################################################
# script to check if the jwilder proxy container is already running
# and if the ngnix-proxy network exists
# run before "docker-compose up -d" if you use nginx-proxy for several projects
# see https://github.com/docker/compose/issues/2075
##########################################################################
if [ ! "$(docker network ls | grep nginx-proxy)" ]; then
@tsl0922
tsl0922 / .tmux.conf
Last active April 30, 2024 10:29
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."