Skip to content

Instantly share code, notes, and snippets.

View mustakim's full-sized avatar
🏠
Working from home

Shah Abdul Mustakim mustakim

🏠
Working from home
View GitHub Profile
@mustakim
mustakim / mern_nginx_ssl_digitalocean.md
Created October 23, 2022 05:10 — forked from sjosephrw/mern_nginx_ssl_digitalocean.md
Deploy Multiple MERN apps to a single digital ocean ubuntu droplet with nginx and SSL

Deploy Multiple MERN apps to digital ocean

This tutorial will guide you through the process of deploying multiple MERN apps to a single digital ocean ubuntu VPS droplet Reference

1. Sign up for Digital Ocean

DigitalOcean

2. Create a droplet and Login via SSH

YouTube

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

@mustakim
mustakim / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Created May 31, 2020 19:14
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.

First request to server
Request URL: http://localhost:3000/connect/facebook
Request Method: GET
Status Code: 302
///
Automatically Second request
Request URL: https://www.facebook.com/dialog/oauth?client_id=497247197687117&
redirect_uri=http://localhost:3000/connect/facebook&response_type=code&state=uSQ5kW
Request Method: GET