Skip to content

Instantly share code, notes, and snippets.

View shan-shaji's full-sized avatar
🧑‍💻
Coding Remotely

Shan Shaji shan-shaji

🧑‍💻
Coding Remotely
View GitHub Profile
@shan-shaji
shan-shaji / work-with-multiple-github-accounts.md
Created October 12, 2022 16:12 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@shan-shaji
shan-shaji / money.model.js
Created September 20, 2021 18:21 — forked from robert52/money.model.js
Approaches to create and combine models in mongoose. Document referencing, model composition and many more.
'use strict';
const DEF_CURRENCY = 'USD';
const DEF_SCALE_FACTOR = 100;
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const MoneySchema = new Schema({