Skip to content

Instantly share code, notes, and snippets.

View sujaykundu777's full-sized avatar
🚀
focusing

Sujay Kundu sujaykundu777

🚀
focusing
View GitHub Profile
@sujaykundu777
sujaykundu777 / Dockerfile
Created February 6, 2020 07:05
docker config to deploy jekyll blog using github actions
# 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 && \
@sujaykundu777
sujaykundu777 / deploy-workflow.yml
Created February 6, 2020 06:38
deploy worlkflow for jekyll build using github actions
# 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
@sujaykundu777
sujaykundu777 / gallery_creator.py
Created January 2, 2020 18:00 — forked from opieters/gallery_creator.py
Python script to generate configuration for a lightGallery photo gallery in Jekyll.
@sujaykundu777
sujaykundu777 / domain-to-aws-ec2-instance.md
Created December 8, 2019 16:18 — forked from keithweaver/domain-to-aws-ec2-instance.md
Point Domain to Amazon Web Services (AWS) EC2 Instance

Point Domain to Amazon Web Services (AWS) EC2 Instance

  1. Open the Amazon Route 53 console at https://console.aws.amazon.com/route53/.
  2. 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.
  3. Choose Create Hosted Zone.
  4. For Domain Name, type your domain name.
  5. Choose Create.
  6. Click the Hosted Zone, edit record set.
  7. In the value, add ec2-54-152-134-146.compute-1.amazonaws.com.
  8. Change your DNS file to point to the IPv4 address (This would be in something like GoDaddy).
@sujaykundu777
sujaykundu777 / settings.json
Created November 7, 2019 12:10
vscode settings for auto indent and font selection
{
/*************************
* EDITOR SETTINGS START *
*************************/
// format the code on hitting the save
"editor.formatOnSave": true,
// font face
"editor.fontSize": 14,
@sujaykundu777
sujaykundu777 / aggregation_lookup.md
Created June 20, 2019 09:31 — forked from bertrandmartel/aggregation_lookup.md
MongoDB $lookup aggregation example

MongoDB $lookup aggregation

SO link

db.votes.aggregate([{
    $lookup: {
        from: "users",
        localField: "createdBy",
        foreignField: "_id",
/* (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 */
}
@sujaykundu777
sujaykundu777 / horizontal menu using CSS Inline.html
Created January 13, 2019 17:05 — forked from stavrossk/horizontal menu using CSS Inline.html
An horizontal html navigation menu using CSS inline. In this example, we let the ul element and the a element float to the left. The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line. The ul element has a width of 100% and each hyperlink in the list has a width of…
<html>
<head>
<style>
ul
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

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y