Skip to content

Instantly share code, notes, and snippets.

View rishikrohan's full-sized avatar

Rishik rishikrohan

  • Mckinsey & Company
  • Bengaluru
View GitHub Profile
##############################################################
# How to run local multi-node Kubernetes clusters using kind #
# https://youtu.be/C0v5gJSWuSo #
##############################################################
#########
# Setup #
#########
# Install kind (https://kind.sigs.k8s.io/docs/user/quick-start/#installation)

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.
@rishikrohan
rishikrohan / grokking_to_leetcode.md
Created October 24, 2023 14:48 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

#!/bin/zsh
# Manual steps :
# Install Chrome : https://www.google.com/chrome/
# Customise System preferences (can use AppleScript to automate this too to some extent)
# - Keyboard for cursor speed and Touch Bar
# 1. Homebrew
sudo chown -R $(whoami) $(brew --prefix)/*
sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions