Skip to content

Instantly share code, notes, and snippets.

View deepak7093's full-sized avatar
💭
Building...

UniCode deepak7093

💭
Building...
View GitHub Profile
@owainlewis
owainlewis / gist:77b241a0063ddf4a9541b71323b07bc0
Created February 13, 2018 12:17
Delete all non running Kubernetes pods
kubectl get pods -a | grep -v Running | awk '{print $1}' | xargs kubectl delete pod
@maozza
maozza / elasticsearch2csv.py
Last active December 26, 2017 15:51
Tool for exporting elasticsearch query to CSV file assumption: the response document is not multidimensional(nested) document. it will execute elasticsearch query_string, for example query_string: this AND that OR thus
#!/usr/bin/python3
import elasticsearch
import argparse
import csv
from elasticsearch import helpers
import json
'''
Tool for exporting elasticsearch query to CSV file
assumption: the response document is not multidimensional(nested) document.
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@joseluisq
joseluisq / terminal-git-branch-name.md
Last active July 4, 2024 15:00
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@mkanchwala
mkanchwala / Kafka MultiNode - MultiBroker Cluster.md
Last active July 2, 2022 10:44
Create Kafka Multi Node, Multi Broker Cluster