This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Make sure to stop/start the Redis Docker container properly. | |
# | |
CONTAINER_NAME="redis-container" | |
DOCKER_START="docker start -ai ${CONTAINER_NAME}" | |
DOCKER_RUN="docker run --name ${CONTAINER_NAME} -p 6379:6379 redis" | |
# is there an existing container named 'redis'? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute ssh --ssh-flag="-L 5555:localhost:5432" "instance-1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# color terminal | |
set -g default-terminal "xterm-256color" | |
# Disable mouse mode |
OlderNewer