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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kong-dashboard-admin | |
spec: | |
type: LoadBalancer | |
loadBalancerSourceRanges: | |
- 0.0.0.0/0 | |
ports: | |
- name: kong-dashboard-admin |
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
# Docker’s commit command allows users to take a running container and save its current state as an image | |
docker commit ${container-id} ${image-name} | |
# Export the image as tar | |
docker save ${image-name} > ./{image-tar-name}.tar | |
# Load a tar image | |
docker load < ${image-tar-name}.tar |
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
{ | |
"send-notification-if-less-than-5": { | |
"Comment": "A choice state to decide to send out notification for <5 or trigger power of three lambda for >5.", | |
"Type": "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$", | |
"NumericGreaterThanEquals": 5, | |
"Next": "power-of-three-lambda" |
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
# Add a new tag | |
git tag -a "v1" -m "Rolled out new changes" | |
# Push tags to remote | |
git push --tags | |
# Remove tag | |
git tag -d v1 | |
# Remove tag from origin |
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
curl -sD- -H x-ec-debug:cache-verbose,x-ec-cache,x-ec-check-cacheable,x-ec-cache-key,x-ec-cache-state -H "Origin: https://www.google.com" https://www.google.com |
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
# stop the ecs agent | |
sudo stop ecs | |
# remove exited container | |
docker ps -qa --filter "status=exited" | xargs docker rm | |
# prune unused docker volume | |
docker volume prune | |
# stop the ecs agent |
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
{ | |
"Version": "2012-10-17", | |
"Id": "S3PolicyIPRestrict", | |
"Statement": [ | |
{ | |
"Sid": "IPAllow", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
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
Under normal mode | |
- daw - delete a word | |
- caw - delete a word and enter into edit mode. | |
Navigate | |
- b - previous word | |
- w - next word | |
- Ctrl+b - previous page | |
- Ctrl+f - next page |
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
SpringApplication springApplication = new SpringApplicationBuilder() | |
.sources(<class name>.class).web(false).build(); | |
springApplication.run(args).close(); |
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
plugins=( | |
git docker docker-compose mvn tmux kubectl zsh-autosuggestions | |
) | |
# Pretty Json | |
alias pjson="python -m json.tool" | |
# Bind key | |
bindkey "\e\e[D" backward-word | |
bindkey "\e\e[C" forward-word |