This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Show all stash entires | |
git stash show -p | |
-- `Show commit count on a branch` | |
git rev-list --count HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Virtualenv Wrapper | |
https://virtualenvwrapper.readthedocs.io/en/latest/# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- get yaml definition after pod runs. | |
kubectl get pod <pod name> -o yaml | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Delete helm installation | |
helm del --purge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -vanp tcp | grep 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CamelCase | |
https://plugins.jetbrains.com/plugin/7160-camelcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -N -f -L <localport>:localhost:<remote port> <remote host> |
OlderNewer