Skip to content

Instantly share code, notes, and snippets.

View trungtnm's full-sized avatar

Trung Trần trungtnm

  • Ho Chi Minh City
View GitHub Profile
@dimkir
dimkir / nightmare-on-amazon-linux.MD
Last active February 6, 2021 17:45
How to run nightmare on Amazon Linux

Running nightmare on Amazon Linux

You may have thought of running nightmare on AWS Lambda. But before we can run it on Lambda, we need first to make it run on Amazon Linux.

Provision instance which replicates Lambda environment

According to AWS Documentation on Lambda Execution Environment and available Libraries we would need this AMI image with this alias amzn-ami-hvm-2016.03.3.x86_64-gp2. Keep in mind that AMI-image-id for this instance would be different in different regions (eg):

  • In eu-west-1 - ami-f9dd458a
  • In us-east-1 - ami-6869aa05
@trungtnm
trungtnm / Fix Centos 6 do not recognize SSH key
Created July 23, 2020 07:30
Why am I still getting a password prompt with ssh with public key authentication?
`restorecon -R -v ~/.ssh`