Skip to content

Instantly share code, notes, and snippets.

@groundnuty
groundnuty / install_kubectx_kubens_linux.txt
Created March 29, 2023 13:37 — forked from iamcryptoki/install_kubectx_kubens_linux.txt
Install kubectx and kubens on Linux.
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
@groundnuty
groundnuty / docker-patch
Created December 6, 2022 20:04 — forked from u8sand/docker-patch
A helper script for patching docker images
#!/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'
#! /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