This file contains hidden or 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
| #!/usr/bin/python | |
| import httplib2 | |
| import os | |
| import random | |
| import sys | |
| import time | |
| from apiclient.discovery import build | |
| from apiclient.errors import HttpError |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| kubectl run -i --tty kafka-cli --image=conitasgmbh/kafka-cli --restart=Never --rm=true -- /bin/sh | |
| kafka/bin/kafka-topics.sh --bootstrap-server 'localhost:9092' --list |
This file contains hidden or 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 | |
| red='\e[91m' | |
| green='\e[92m' | |
| yellow='\e[93m' | |
| magenta='\e[95m' | |
| cyan='\e[96m' | |
| none='\e[0m' | |
| _red() { echo -e ${red}$*${none}; } | |
| _green() { echo -e ${green}$*${none}; } |
This file contains hidden or 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
| # 0. Check consumed disk space | |
| git count-objects -vH | |
| # 1. Displays all blob objects in the repository, sorted from smallest to largest. | |
| git rev-list --objects --all \ | |
| | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ | |
| | awk '/^blob/ {print substr($0,6)}' \ | |
| | sort --numeric-sort --key=2 \ | |
| | cut --complement --characters=13-40 \ | |
| | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest |
This file contains hidden or 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
| set number | |
| imap jj <esc> | |
| set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab | |
| set background=dark | |
| set spell! | |
| set mouse=a | |
| set formatoptions-=cro "disable continuation of comments to the next line | |
| call plug#begin('~/.vim/plugged') |