- Open the Amazon Route 53 console at https://console.aws.amazon.com/route53/.
- If you are new to Amazon Route 53, you see a welcome page; choose Get Started Now for DNS Management. Otherwise, choose Hosted Zones in the navigation pane.
- Choose Create Hosted Zone.
- For Domain Name, type your domain name.
- Choose Create.
- Click the Hosted Zone, edit record set.
- In the value, add
ec2-54-152-134-146.compute-1.amazonaws.com.
- Change your DNS file to point to the IPv4 address (This would be in something like GoDaddy).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Our Docker image will be based on ruby:2-slim | |
# it is a very light docker image. | |
FROM ruby:2-slim | |
LABEL author="Sujay Kundu" | |
LABEL version="1.0.0" | |
# Lets install all dependencies | |
# including git and Bundler 2.1.4 | |
ENV BUNDLER_VERSION 2.1.4 | |
RUN apt-get update && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the name of our workflow. | |
# Github will show it on its Website UI | |
name: deploy | |
# This configures our workflow to be triggered | |
# only when we push to the master branch | |
on: | |
push: | |
branches: | |
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# install imagesize: pip install imagesize | |
__author__ = 'Olivier Pieters' | |
__author_email__ = 'me@olivierpieters.be' | |
__license__ = 'BSD-3-Clause' | |
import yaml, imagesize | |
from os import listdir, rename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/************************* | |
* EDITOR SETTINGS START * | |
*************************/ | |
// format the code on hitting the save | |
"editor.formatOnSave": true, | |
// font face | |
"editor.fontSize": 14, |
db.votes.aggregate([{
$lookup: {
from: "users",
localField: "createdBy",
foreignField: "_id",
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* (320x480) iPhone (Original, 3G, 3GS) */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
/* insert styles here */ | |
} | |
/* (320x480) Smartphone, Portrait */ | |
@media only screen and (device-width: 320px) and (orientation: portrait) { | |
/* insert styles here */ | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build a blog using angularjs (frontend), nodejs(server), mongodb (database), express(rest api) | |
Step 1. Initialize project | |
mkdir ngblog | |
cd ngblog | |
npm init -y // Initialize package.json.entry point: (server.js) | |
code . // Opens visual studio code |