title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
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
# SETUP RESOURCE GROUP | |
#reference https://docs.aws.amazon.com/cli/latest/reference/inspector/index.html | |
aws inspector create-resource-group --resource-group-tags key=SecurityScan,value=true | |
#from previous step get resgroupARN | |
aws inspector create-assessment-target \ | |
--assessment-target-name GamesDevTargetGroup \ | |
--resource-group-arn <ResourceGroupARN> | |
#see available rules packages |
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
sudo timedatectl set-timezone "Asia/Kuala_Lumpur" | |
# update OS & install necessary stuff | |
sudo apt update -y && sudo apt install byobu multitail htop iftop screen -y | |
#vim environment to be windows friendly colorscheme | |
echo "syntax on | |
colorscheme desert" > ~/.vimrc | |
# check date adn time |
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
#check curl connection speed: https://coderwall.com/p/lwpszg/measuring-download-speed-from-the-command-line-with-curl | |
curl -Lo /dev/null -skw "\ntime_connect: %{time_connect}s\ntime_namelookup: %{time_namelookup}s\ntime_pretransfer: %{time_pretransfer}\ntime_starttransfer: %{time_starttransfer}s\ntime_redirect: %{time_redirect}s\ntime_total: %{time_total}s\n\n" http://foolproofcode.com | |
#example result: | |
#time_connect: 0.074s | |
#time_namelookup: 0.063s | |
#time_pretransfer: 0.103 | |
#time_starttransfer: 0.278s | |
#time_redirect: 0.067s |
OlderNewer