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 git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
echo "source /opt/kubectx/completion/kubectx.bash" >> ~/.bashrc | |
echo "source /opt/kubectx/completion/kubens.bash" >> ~/.bashrc |
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
#!/bin/bash | |
# Dependencies: | |
# - docker (obviously) | |
# - jq (json parsing) | |
docker_patch_usage() { | |
echo 'Usage: docker-patch' | |
echo ' CONTAINER=$(docker-patch start your/tag)' | |
echo ' # apply patch to $CONTAINER (docker container)' | |
echo ' docker-patch commit ${CONTAINER} your/patched-tag' |
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
#! /bin/bash | |
# | |
# | |
# Installing doker on ubuntu. | |
# edit sudo vim /etc/systemd/system/multi-user.target.wants/docker.service | |
# and change -d with daemon | |
# then sudo service docker restart && sudo service docker status | |
# | |
# | |
set -eo pipefail |