How to Create a VPC in CloudFormation
It’s very easy to deploy a VPC using CloudFormation:
AWSTemplateFormatVersion: 2010-09-09
Description: Deploy a VPC
Resources:
VPC:
Type: …
Read Article →
In-depth guides, insights, and best practices for modern software engineering
It’s very easy to deploy a VPC using CloudFormation:
AWSTemplateFormatVersion: 2010-09-09
Description: Deploy a VPC
Resources:
VPC:
Type: …
Read Article →
Connect to the instance:
chmod 400 KEYPAIR.pem
ssh -i KEYPAIR.pem ec2-user@EC2PublicIP
Install Git:
sudo yum install -y git
Setup Git Credential …
Read Article →The objective is to return all pairs of integers from a given array of integers that have a difference of 2.
The resulting array should …
Read Article →Write a simple parser that will parse and run Deadfish.
Deadfish has 4 commands, each 1 character long:
i increments the value …You will be given a number and you will need to return it as a string in Expanded Form.
Examples:
Challenge.expandedForm(12); // Should …
Read Article →
Define a function that takes one integer argument and returns a logical value true or false depending on if the integer is a prime.
Per …
Read Article →Write a function minutesToMidnight(d) that will take a date object as the parameter. Return the number of minutes in the following …
Read Article →If you have a file on your machine, and you want to change the created/modified time/date stamp, then you can use the touch command.
touch -t …
Read Article →
Given an integer as input, can you round it to the next (meaning, “higher”) multiple of 5?
Examples:
input: output:
0 …
Read Article →
Your task is to write a function that returns the sum of the following series up to nth term(parameter).
Series: 1 + 1/4 + 1/7 + 1/10 + …
Read Article →
Wilson primes satisfy the following condition. Let P represent a prime number.
Then ((P-1)! + 1) / (P * P) should give a whole number. …
Create a new AWS EC2 instance, and set the User Script to the following:
#!/bin/bash
sudo su
yum update -y
yum install -y httpd.x86_64
systemctl start …
Read Article →