Skip to content

Instantly share code, notes, and snippets.

View debojyoti's full-sized avatar
:octocat:
Making bugs for github since 2016

Debojyoti Saha debojyoti

:octocat:
Making bugs for github since 2016
View GitHub Profile
@debojyoti
debojyoti / important-commands.md
Created November 23, 2022 09:28
important-commands

docker commands

Start a container

docker run -p HOSTPORT:CONTAINERPORT IMAGE_ID_OR_NAME

List all containers

docker ps -a

Stop a container

Setup NGINX, SSL with custom domain on an ubuntu instance

Step-1: Setup NGINX

1.1: Install NGINX

sudo apt-get install nginx

1.2: Update NGINX's configuration

AWS auto deployment setup

Using: S3 Bucket, Cloudfront, Code Commit and Pipeline

1. Prepare the S3 bucket for static file hosting

1.1 Create a bucket and uncheck "Block all public access" 1.2 Edit the bucket policy under "Permissions" tab Use the follow policy

{
 "Version": "2012-10-17",

Get started with node, mysql and phpmyadmin in ubuntu

1) Install node and npm

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

2) Install mysql, apache2 and mysql-server

Get started with firebase cloud functions

Step-1: Install packages

1.1: Install firebase-tools globally if not installed

npm i -g firebase-tools
@debojyoti
debojyoti / ng-firebase-google-login.md
Last active February 14, 2024 02:06
Firebase google login setup in Angular

Firebase google login setup in Angular

Social login is the fastest way to engage users. And luckily firebase has done the hard work for us. In this post we will configure google login in no time!

Step-1: Configure firebase and google cloud console

1.1: Setup firebase project

1.1.1: Head to firebase and open your project

Integrate One Signal Push Notification in React Native (Android)

In this guide I have covered setup for android platform only. For iOS please check official doc

Step-1: Setup a firebase app

1.1: Create an App in your Firebase console

1.2: Get Server key and Sender ID from the Firebase app

Upload image to Cloudinary in React Native

Step-1: Install & configure RNFetchBlob

npm install --save rn-fetch-blob

or

Easy steps to implement social login with linkedin in Angular 7 (Angular 2+)

Note: The entire login process cannot be handled from client side, backend integration required for some steps (Explained at Step-3).

Step-1: Create your app in linkedin developer console

In order to start with linkedin login, we need to first create out app in linkedin.

Note: If you have already created your app, click on Go to My apps, select your app and then follow from step no 1.2

Get started with React Native Navigation

Official doc link

1) Install the package

npm install --save react-native-navigation@1