Skip to content

Instantly share code, notes, and snippets.

View vinkrish's full-sized avatar
🎯
Focusing

Vinay Krishna vinkrish

🎯
Focusing
View GitHub Profile
@vinkrish
vinkrish / System Design.md
Created May 14, 2018 05:35 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@vinkrish
vinkrish / git-commands.md
Last active July 5, 2024 19:55
Git Handy Commands

Setting up a repo

$ git init
will initialize git repository in current directory
(or)
$ git clone ssh://vinay@example.com/path/to/my-project.git
$ cd my-project

$ git remote -v
to know about remote repos

@vinkrish
vinkrish / bash_command.md
Last active July 2, 2023 16:10
Linux Commands

clear
sudo apt=get update && sudo apt-get upgrade

whoami
hostname
ls
ls -l
AFAIK: As Far As I Know
AFK: Away From Keyboard
AMA: Ask Me Anything
CMV: Change My View
CW: Content Warning
DAE: Does Anybody Else
DRY: Don’t Repeat Yourself
ELI5: Explain Like I’m 5
FOMO: Fear Of Missing Out
FP: Favorite Person or Fair Play
Visual Studio Code:
Ctrl+' = Toggle Terminal
Cmd + P = Go to File
Cmd + o = Opens file in finder
Cmd + Shift + k = Delete Line
Shift + Alt + F = Format with Indentation
Shift + Cmd + L = multi-word selection
Cmd + Alt + Up/Down = Selects in a column directly up or down from the cursor's position
Ctrl + k + 0 = Fold all section
Ctrl + k + j = Unfold all section
Android Studio:
Ctrl + Alt + L
Ctrl + Alt + I
Eclipse:
Ctrl + I
Ctrl + Shift + F
Sublime:
HTML / CSS / JS : Ctrl + Shift + H
PascalCase
camelCase.
snake_case.
lisp-case (or) spinal-case (or) train-case (or) kebab case: some-name.
npm update -g typescript
tsc -v
To check app version:
ng -v
npm install -g @angular/cli
ng new first-app
cd first-app
ng serve --open
#
# Contents
#
# 1. JSON Documents
# 2. CRUD - Create / Read / Update / Delete
# a. Create
# - Different ways to insert/create an index
# - Bulk indexing documents
# b. Read
# - Basic searches
# Comment
{
graphQLHub
github {
// Object Field
user(username: "clayallsopp") { // username is Field arguments
login // Scalar Field
id
avatar_url
}