Skip to content

Instantly share code, notes, and snippets.

View Ranger-X's full-sized avatar

Makeev Ivan Ranger-X

  • Russian Federation, Togliatty
View GitHub Profile
@Ranger-X
Ranger-X / tplink-archer-t4u.md
Created August 9, 2021 06:43 — forked from primaryobjects/tplink-archer-t4u.md
Steps to Install the TP-Link Archer T4U Plus AC1300 USB WiFi Adapter on Linux Mint
@Ranger-X
Ranger-X / kafka-move-leadership.sh
Created July 5, 2016 04:54 — forked from miguno/kafka-move-leadership.sh
A simple Ops helper script for Apache Kafka to generate a partition reassignment JSON snippet for moving partition leadership away from a given Kafka broker. Use cases include 1) safely restarting a broker while minimizing risk of data loss, 2) replacing a broker, 3) preparing a broker for maintenance.
#!/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.