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
alshf89 / Readme.md
Last active Jul 13, 2019
Add BasicAuth to Postman Published Collection on Custom Domains
View Readme.md

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: docs.example.com) that you want to show your Postman Published collections you should set a CNAME record which point to your host instead of phs.getpostman.com so we can handle it with Nginx rather than DNS resolver.

View Readme.md

The IAM Policy for AWS S3 Buckets

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

@alshf89
alshf89 / Setup.sh
Last active Jun 20, 2019
Install Nginx, PHP7.3, PHP fastCGI, Redis and Composer on AWS EC2 AL2 Instance
View Setup.sh
# 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
alshf89 / Readme.md
Created Jun 20, 2019
AppSpec YAML in Amazon CodeDeploy Process
View Readme.md

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.