Skip to content

Instantly share code, notes, and snippets.

View khaitranhq's full-sized avatar

Khai Tran khaitranhq

  • Saigon Technology
  • Da Nang, Viet Nam
View GitHub Profile
@khaitranhq
khaitranhq / create_aws_params.sh
Created December 21, 2023 03:53 — forked from doncote/create_aws_params.sh
Create multiple AWS SSM parameters from a json file
#!/bin/sh
jq -c '.[]' params.json | while read i; do
aws ssm put-parameter --cli-input-json $i
done
[style]
based_on_style = pep8
#Put closing brackets on a separate line, dedented, if the bracketed expression can't fit in a single line
dedent_closing_brackets=True
spaces_around_default_or_named_assign=True
coalesce_brackets=True
split_all_top_level_comma_separated_values=True
indent_dictionary_value=True
@khaitranhq
khaitranhq / install-docker.md
Created January 25, 2022 06:47 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker -y
sudo service docker start