How to Create an S3 bucket with PublicRead in CloudFormation
Here’s a minimal CloudFormation template for creating an S3 bucket with public read access. This is useful for hosting static assets like …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Here’s a minimal CloudFormation template for creating an S3 bucket with public read access. This is useful for hosting static assets like …
Read Article →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:
This is handy for quick demos or testing — the instance comes up with Apache …
Read Article →Christmas is coming and many people dreamed of having a ride with Santa’s sleigh. But, of course, only Santa himself is allowed to …
Read Article →Return a new array consisting of elements which are multiple of their own index in input array (length > 1).
Examples:
[22, -6, 32, …
Read Article →When provided with a letter, return its position in the alphabet.
Input :: “a”
Ouput :: “Position of alphabet: …
Read Article →Alex just got a new hula hoop, he loves it but feels discouraged because his little brother is better than him
Write a program where …
Read Article →Bob is working as a bus driver. However, he has become extremely popular amongst the city’s residents. With so many passengers …
Read Article →If you are given the head node in a linked list, write a method that swaps each pair of nodes in the list, then returns the head node of …
Read Article →Neo is somewhere in the Matrix.
public interface Matrix {
public int size();
public int get(int x, int y);
}
You are Morpheus, and …
Read Article →In mathematics, a pandigital number is a number that in a given base has among its significant digits each digit used in the base at …
Read Article →If you need to query meta-data information from your running EC2 instance, you can curl the following location:
curl …
Read Article →
The make_looper() function takes a string (of non-zero length) as an argument. It returns a function. The function it returns will …
In this challenge, you will make a function that converts between camelCase, snake_case, and kebab-case.
You must write a function that …
Read Article →