Skip to content

Instantly share code, notes, and snippets.

Working from home

Ali Shafiee alshf89

Working from home
Block or report user

Report or block alshf89

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
alshf89 /
Last active Jul 13, 2019
Add BasicAuth to Postman Published Collection on Custom Domains

set NS TXT RECORD that provided by Postman for your custom domain in DNS resolver (Bind, Route53, ...) and handle CNAME Record redirection with Nginx.

for example if you have a custom sub domain (ex: that you want to show your Postman Published collections you should set a CNAME record which point to your host instead of so we can handle it with Nginx rather than DNS resolver.


The IAM Policy for AWS S3 Buckets

Create User with Programmatic access and then add this policy in permission section.

alshf89 /
Last active Jun 20, 2019
Install Nginx, PHP7.3, PHP fastCGI, Redis and Composer on AWS EC2 AL2 Instance
# Add Epel Relase Repo
sudo amazon-linux-extras install epel
# update Yum
sudo yum update
# Install Nginx
sudo yum install nginx
# Start nginx and enable it on reboot EC2
alshf89 /
Created Jun 20, 2019
AppSpec YAML in Amazon CodeDeploy Process

Each github repo must have appspec.yml file

Note that EC2 instance must have AMI role of AmazonEC2RoleforAWSCodeDeploy and we should create AWSCodeDeployRole role for AWS CodeDeploy.

then we create AWS CodePipeLine with role of AWSCodePipelineServiceRole normally it will create new service role, then skip build section and viola!

For more Information checkout this Medium article

You can’t perform that action at this time.