Skip to content

Instantly share code, notes, and snippets.

Avatar

Dibyanshu dibyanshusinha

View GitHub Profile
View using-multiple-github-accounts-with-ssh-keys.md

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
View dibyanshusinha.java
A class is a template for creating a particular form of object.
class Entry {
/* fields */
String name;
String address;
String phone;
/* constructor */ is called Implicitly
@dibyanshusinha
dibyanshusinha / react_d3_playground.js
Last active May 7, 2021
BlackBoxing Approach D3 with React.
View react_d3_playground.js
// Approach uses clear Seperation of concern
// Lifecycle Methods wraps D3 chart created outside
// Cons - No SSR
import React, { useLayoutEffect } from "react";
import * as d3 from "d3";
const draw = () => {
const width = 600;
View domains
# domainstosell
Domain Listing
unicopt.com
View MyGitCheatSheet.md

Submodules:

git submodule update --init --recursive

CHERRY-PICKING

View React-formik-yup
import React from "react";
import { withFormik, Form, Field } from "formik";
import { object, string, boolean, mixed } from "yup";
const SignUpForm = ({
values,
isValid,
setFieldValue,
setFieldTouched,
dirty,
View MAC NTFS ENABLE
i. Mount NTFS external drive on your Mac and find it's name
diskutil list
ii. Launch Terminal and enter the following command
sudo nano /etc/fstab
iii. Now add new code to nano and replace NAME with the NTFS drive’s name