Skip to content

Instantly share code, notes, and snippets.

View amrutprabhu's full-sized avatar

Amrut Prabhu amrutprabhu

View GitHub Profile
@amrutprabhu
amrutprabhu / Git commands
Last active August 8, 2018 09:33
Some git commands i found to be usefull
-- Show all stash entires
git stash show -p
-- `Show commit count on a branch`
git rev-list --count HEAD
@amrutprabhu
amrutprabhu / SSH
Last active November 13, 2018 11:04
SSH tunneling
-- bash file interepter ---
#!/bin/bash
-- Tunnelling
ssh -N -f -L <localport>:localhost:<remote port> <remote host>
-- Enable Remote debugging
CATALINA_OPTS=" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
-- Fish shell function arguments
@amrutprabhu
amrutprabhu / Docker Commands
Last active May 21, 2022 11:24
docker commands cheat sheet for my reference
Install docker : curl -fsSL https://get.docker.com -o get-docker.sh
docker-machine create vm1
----- Containers -------
docker container run --name search -d --network my_net elasticsearch:2
docker container run --rm -it elasticsearch:2 /bin/bash
docker container exec -it nginx bash
Virtualenv Wrapper
https://virtualenvwrapper.readthedocs.io/en/latest/#
@amrutprabhu
amrutprabhu / AWS Commands
Last active November 25, 2018 14:45
AWS commands for managing profiles, getting identity, eks config update
-- AWS create user profile
aws configure --profile <profile name>
-- Get Caller identity
aws sts get-caller-identity --profile <profile-name>
-- ECR authentication token (https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html)
aws ecr get-login --profile <profile name>
-- AWS EKS config add/update
@amrutprabhu
amrutprabhu / Kubernetes Reference command
Last active November 25, 2018 14:47
Some kubernetes commands I came across while working with kubernetes.
-- get yaml definition after pod runs.
kubectl get pod <pod name> -o yaml
@amrutprabhu
amrutprabhu / Helm commands
Last active November 25, 2018 14:41
Some helm commands
-- Delete helm installation
helm del --purge
@amrutprabhu
amrutprabhu / find-process-using-a-port
Last active November 28, 2018 22:15
Find process id using a particular port (mac)
netstat -vanp tcp | grep 3000
@amrutprabhu
amrutprabhu / Useful Intellij Plugins
Created December 11, 2018 09:30
Some intellij plugins which are very useful
CamelCase
https://plugins.jetbrains.com/plugin/7160-camelcase
@amrutprabhu
amrutprabhu / ssh-tunnelling
Created December 21, 2018 11:53
ssh tunnelling
ssh -N -f -L <localport>:localhost:<remote port> <remote host>