Skip to content

Instantly share code, notes, and snippets.

View pavankjadda's full-sized avatar
😀
Follow me on Twitter @pavankjadda

Pavan Kumar Jadda pavankjadda

😀
Follow me on Twitter @pavankjadda
View GitHub Profile
@pavankjadda
pavankjadda / Git Commands and Tips.md
Last active November 20, 2018 05:07
Git Commands and Tips

Git Commands and Tips

Enable Git autocomoplete in macOS or Ubuntu

  1. Download git autocompletion script using following CURL command
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
  1. Open ~/.bash_profile file (~/.bash_rc if use Linux) and add the following
if [ -f ~/.git-completion.bash ]; then
 . ~/.git-completion.bash
@pavankjadda
pavankjadda / Generate Custom SSH Key.md
Last active October 27, 2023 16:54
Generate SSH Key with custom name

Create new Private and Public key on Host machine (Ex.macOS)

$ssh-keygen -t rsa
# Enter location and file name like (/Users/pjadda/.ssh/minishift_rsa), do not use default files
#Passphrase is optional

Create .ssh folder in Guest OS even if it exists

$ssh [email protected] mkdir -p .ssh
@pavankjadda
pavankjadda / KafkaCommands.md
Last active February 1, 2019 01:12
Kafka Commands

Kafka Topic Commands

bin/kafka-topics.sh --list --zookeeper 172.19.0.8:2181

bin/kafka-topics.sh --describe --zookeeper 172.19.0.8:2181 --topic customChannel

bin/kafka-topics.sh --zookeeper 172.19.0.8:2181 --delete --topic customChannel

bin/kafka-topics.sh --create --zookeeper 172.19.0.8:2181 --replication-factor 1 --partitions 1 --topic greetings
@pavankjadda
pavankjadda / KubernetesCommands.md
Last active October 12, 2018 18:17
Kubernetes Commands

Get all pods in a namespace

kubectl get pods --namespace=kube-system

Get all services in a namespace

kubectl get services --namespace=kube-system

@pavankjadda
pavankjadda / DockerCommands.md
Last active September 16, 2023 13:30
Most Common Docker Commands

List Docker Images

docker images

List All Docker Images

docker images -a

List dangling images (orphan images)

docker images -f dangling=true

Remove dangling images