Skip to content

Instantly share code, notes, and snippets.

View Dikhit's full-sized avatar
🏹
Focusing

katlic Dikhit

🏹
Focusing
  • Dibrugarh, Assam
View GitHub Profile

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

package com.ibm.lpa.service.impl;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.ParseException;
import java.util.*;
import javax.transaction.Transactional;
import com.ibm.lpa.common.GlobalConstants;
MTX Assignment
create database sqlAssignment;
use sqlAssignment;
-- Ans 1
create table products(
productID int primary key,
productName varchar(100) not null,
description varchar(100),
import * as React from 'react';
import { StyleSheet, View, Text, ActivityIndicator } from 'react-native';
import { Card, CardItem } from 'native-base';
class WeatherApp extends React.Component{
static navigationOptions = {
title : 'Weather API Fetch'
}
constructor (props){
super(props);
from selenium import webdriver
from bs4 import BeautifulSoup as bs
import time
import re
from urllib.request import urlopen
import json
from pandas.io.json import json_normalize
import pandas as pd, numpy as np
@Dikhit
Dikhit / graph.java
Created August 12, 2019 08:43
graph console output
import java.util.LinkedList;
import java.util.Scanner;
class GraphContainer{
static class Graph{
int vertices;
LinkedList<Integer>adjacencyListArray[];
private static Graph graphObject;
Graph(int vertices) {
@Dikhit
Dikhit / Assingments.cc
Created August 22, 2018 08:40
final report
#include<iostream>
using namespace std;
// function prototyping
int appendList(int size, int intValue);
int appendShiftList(int size, int addingNum);
int modifyList(int inputPos);
int getFirst(int *ptr);
int getLast(int size);
@Dikhit
Dikhit / BankInformationComponent.js
Created May 9, 2018 14:24
bankInformation (text area)
import React, {Component} from 'react'
import {Card, Form, Input, Row, Radio} from 'antd';
import {Button, ButtonGroup} from '@blueprintjs/core';
import '@blueprintjs/core/lib/css/blueprint.css'
import 'antd/dist/antd.css'
const FormItem = Form.Item;
const TextArea = Input.TextArea;
const RadioButton = Radio.Button;
import React, {Component} from 'react'
import {Card, Col, Form, Input, Row, Radio} from 'antd';
import {Button, ButtonGroup} from '@blueprintjs/core';
import '@blueprintjs/core/lib/css/blueprint.css'
import 'antd/dist/antd.css'
const FormItem = Form.Item;
const TextArea = Input.TextArea;
const RadioButton = Radio.Button;