Skip to content

Instantly share code, notes, and snippets.

View padusumilli's full-sized avatar

Prathap Adusumilli padusumilli

View GitHub Profile
@padusumilli
padusumilli / elastic-reindex-modify-fields
Last active November 16, 2022 11:34
Elastic reindex with array field changes
POST _reindex
{
"source": {
"index": "events-2022-09-v2"
},
"dest": {
"index": "events-2022-09-v3"
},
"script": {
"source": """
@padusumilli
padusumilli / delete-artificatory-docker-images.py
Created September 17, 2020 08:47
Script to delete old docker images from artifactory
def clean_docker():
import requests
base_url = 'http://artifactory.local/artifactory/'
headers = {
'content-type': 'text/plain',
}
# Delete from 'docker-snapshots' repo all images older than 4 weeks and image name starts with 'vcloud' and does not end with 'RELEASE'
@padusumilli
padusumilli / kafka-cluster-docker-compose.yml
Last active January 13, 2024 20:51
Docker compose with multiple kafka broker and schema registry
version: '3.1'
services:
zookeeper-1:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 22181
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_INIT_LIMIT: 5
ZOOKEEPER_SYNC_LIMIT: 2