A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| #!/usr/bin/env bash | |
| # | |
| # File: kafka-move-leadership.sh | |
| # | |
| # Description | |
| # =========== | |
| # | |
| # Generates a Kafka partition reassignment JSON snippet to STDOUT to move the leadership | |
| # of any replicas away from the provided "source" broker to different, randomly selected | |
| # "target" brokers. Run this script with `-h` to show detailed usage instructions. |
| apt-get install source-highlight | |
| # update .bashrc / .zshrc: | |
| export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" | |
| export LESS=' -R ' | |
| # add yaml support as shown in lang.map.diff |