Skip to content

Instantly share code, notes, and snippets.

View amalrkc's full-sized avatar

Amal Ramakrishnan amalrkc

View GitHub Profile

16th April 2025

  • 3190
  • 771
  • 557
  • 2942
  • 1108 (x2)
  • 509
  • 2413
  • 2469
  • 2154
@amalrkc
amalrkc / authors.json
Created September 5, 2024 17:06 — forked from hiteshchoudhary/authors.json
Random data to learn aggregation pipelines in MongoDB
[
{
"_id": 100,
"name": "F. Scott Fitzgerald",
"birth_year": 1896
},
{
"_id": 101,
"name": "George Orwell",
"birth_year": 1903
@amalrkc
amalrkc / MongoDB Aggregations with Examples.md
Last active May 28, 2025 07:33
MongoDB aggregations notes taken from "Complete MongoDB aggregation pipeline course" by Hitesh Choudhary

Source Tutorial

1 - Import Sample Data

From this Gist, insert all the data to a database aggree. You may use a MongoDB client of choice.

To do this in mongosh:

use aggree
@amalrkc
amalrkc / mongodb_cheat_sheet.md
Last active May 28, 2025 05:43 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@amalrkc
amalrkc / MongoBD-Guide-7.0.md
Created August 10, 2024 15:29
My Personal MongoDB Guide

Startup and Shutdown

In the terminal type mongosh to start cli client

$ mongosh

This will give the following output:

@amalrkc
amalrkc / vscode-shortcuts.txt
Created November 28, 2023 11:34
A list of most used VSCode shortcuts.
Ctrl+Shift+P, F1 Show Command Palette
Ctrl+Enter Insert line below
Ctrl+Shift+Enter Insert line above
Ctrl+] / [ Indent/outdent line
Home/End Go to beginning/end of line
Ctrl+Home Go to beginning of file

vi Complete Key Binding List

This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, and even an expert may learn a thing or two. complete key binding reference

Key Action Followed by
a enter insertion mode after current character text, ESC
b back word
c change command cursor motion command
d delete command cursor motion command
e end of word
@amalrkc
amalrkc / cheatsheet.yml
Created August 31, 2023 18:01 — forked from xputerax/cheatsheet.yml
YAML cheat sheet
# YAML cheat sheet
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c
# object
person:
# string value. single/double quotes
# anchoring
name: &name "daniel" # anchor name doesn't have to be the same as key name
occupation: 'student'
@amalrkc
amalrkc / NvChad-v1-Cheatsheet.md
Last active May 8, 2025 21:57
My personal cheatsheet for NvChad v1. Source: https://youtu.be/Mtgo-nP_r8Y

NvChad Cheatsheet

Setup

  • Install Neovim with instructions from here
  • Run alias vim=nvim to use 'vim' as an alias. ie: Run Neovim with the vim command.
  • Run echo 'alias vim=nvim' >> .zshrc to save the alias to shell configuration. This command shown here only works for zsh.
@amalrkc
amalrkc / vim-tutorial-freecodecamp.md
Last active November 8, 2024 08:24
A list if Vim/Neovim key bindings for quick reference. Source: https://youtu.be/RZ4p-saaQkc

Vim Logo

Startup