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
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
@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.

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 / soical-auth.md
Last active July 7, 2022 11:55
social-auth-wiki

Social Auth with Angular (eg: Linkedin, Facebook, Google, Apple)

Note: The entire login process cannot be handled from client side, backend integration required for some steps

Linkedin with Angular

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.

@mustakim
mustakim / dasboard-state-change.md
Last active August 21, 2022 04:19
tesenso wiki

Code Snippet for state change with relational data


var entitySubType;
var $injector = widgetContext.$scope.$injector;
let customDialog = $injector.get(widgetContext.servicesMap
    .get('customDialog'));
let entityService = $injector.get(widgetContext.servicesMap
    .get('entityService'));
@mustakim
mustakim / rule-engine.md
Last active August 8, 2022 12:00
js scripts

Script to get time difference

var epochTime = parseInt(metadata['ts']);
// getting time from message
var messageTime = new Date(epochTime);
var currentTime = new Date();

var difference = currentTime.getTime() - messageTime
    .getTime();
@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

@mustakim
mustakim / vmwk17key.txt
Created February 11, 2023 17:05 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Sub to me on youtube pls
if you want more keys, @purplevibe32tg < talk with me on telegram
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
*No spam just license key
*Based on william's gist