- Bash/zsh completion
- use Tab to populate command line, narrows down options as you go, fills in container names, ID's, images, volumes. Huge time saver.
This file contains 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
# NOT FOR SHELL SCRIPT, but rather just for quick copy paste | |
# this is a copy-paste version with defaults of the full shell script docker-xenial.sh which is below this one in gist. | |
apt-get -y install apt-transport-https ca-certificates curl && \ | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \ | |
service lxcfs stop && apt-get remove -y -q lxc-common lxcfs lxd lxd-client && \ | |
apt-get update -q && \ | |
apt-get install -y -q docker-ce && \ | |
printf '{ "userns-remap" : "default" , "storage-driver" : "overlay2" }' > /etc/docker/daemon.json && \ |
This file contains 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
# problem: when presenting, I want to obscure | |
# my prompt to act like it's at root of file system | |
# and be very basic with no git info, etc. | |
# solution: this theme lets you set a ENV to the path | |
# of your presentation, which will help remove unneeded prompt | |
# features while in that path | |
# oh-my-zsh theme for presenting demos | |
# based off the default rubbyrussell theme |
This file contains 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
sudo: required #is required to use docker service in travis | |
language: php #can be any language, just php for example | |
services: | |
- docker # required, but travis uses older version of docker :( | |
install: | |
- echo "install nothing!" # put your normal pre-testing installs here |
- download these two files to the same directory
- docker-compose up
- http://localhost should show you "it works" which is apache being reverse-proxied through nginx
- docker sets up DNS for
web
based on compose service name so the nginx front-end can find http://web - proxy is set to listen on public port 80 on host so it'll receive incoming traffic, then push to httpd
This file contains 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
# Replace the "❯" symbol in the prompt with "🥃" | |
[character] | |
success_symbol = "[🥃](bold green)" | |
[[battery.display]] | |
threshold = 75 # only show me battery status below 75% | |
[directory] | |
truncation_length = 5 | |
truncation_symbol = '…/' |
This file contains 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
# this assumes your using oh-my-zsh for maximum zsh-ness | |
# info and defaults are here: | |
# https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template | |
export LC_ALL="en_US.UTF-8" | |
export ZSH=/Users/bret/.oh-my-zsh | |
# custom prompt theme | |
ZSH_THEME="present" # mine is present, default is robbyrussell, also agnoster, fishy, ys, wild-cherry | |
COMPLETION_WAITING_DOTS="true" |
This file contains 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
dcb='docker-compose build' | |
dcdn='docker-compose down' | |
dce='docker-compose exec' | |
dcl='docker-compose logs' | |
dclf='docker-compose logs -f' | |
dco=docker-compose | |
dcps='docker-compose ps' | |
dcr='docker-compose run' | |
dcrestart='docker-compose restart' | |
dcrm='docker-compose rm' |
This file contains 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
version: '3' | |
# vcap.me is a wildcard domain that resolves to localhost | |
# in case you need to pass URL's around from browser to | |
# containers this could help you get around localhost problem | |
services: | |
# use www.vcap.me to access web containter from host | |
# use api.vcap.me to access api container from host | |
proxy: |
This file contains 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
# tmux config for ultimate winning | |
# make tmux display things in 256 colors | |
#set -g default-terminal "screen-256color" | |
# use this if italic enabled in term profile | |
set -g default-terminal "tmux-256color" | |
# set just true color without custom term | |
#set -ga terminal-overrides ",xterm-256color:Tc" | |
# fixes bug: https://github.com/tmux/tmux/issues/435 | |
#set -ga terminal-overrides ',xterm*:sitm=\E[3m' |