Skip to content

Instantly share code, notes, and snippets.

View richardcane's full-sized avatar
👨‍💻
🦀

Richard Cane richardcane

👨‍💻
🦀
View GitHub Profile
@richardcane
richardcane / iterm2-solarized.md
Created March 3, 2023 18:54 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

Keybase proof

I hereby claim:

  • I am richardcane on github.
  • I am richardcane (https://keybase.io/richardcane) on keybase.
  • I have a public key ASC05NLIr-y9XUjXXAwylBtWwbDImmdzeK5JeKwZKVcLHAo

To claim this, I am signing this object:

alias kc=kubectl
alias kns=kubens
source <(kubectl completion bash | \
sed 's/kubectl/kc/g' | \
sed 's/kc_get/get/g' | \
sed 's/kc_edit/edit/g' | \
sed 's/kc_delete/delete/g' | \
sed 's/kc_exec/exec/g')
alias get='kc get $@'
@richardcane
richardcane / .docker-aliases
Last active May 8, 2018 09:49
Bash aliases for Docker
Disclaimer: these are in no way their most perfect form and mostly haven't been updated to account for Docker updates in the year prior to this comment.
Mostly self explanatory, most of these commands (excluding up) allow you to provide partial names to operate on containers.
Only one that might need explaining is dps, which is a reformatted docker ps that provides IP and running ports alongside other useful container information. It's a bit slower than docker ps -a as it inspects each running container before printing it out. There's probably a quicker way to do this, but it works.
To install, add to run commands for whatever terminal you're using (.bashrc, .zshrc)