Skip to content

Instantly share code, notes, and snippets.

View shahrk's full-sized avatar
🎯
Focusing

Raj Shah shahrk

🎯
Focusing
View GitHub Profile
@shahrk
shahrk / .zshrc
Last active June 17, 2022 08:04
shahrk's ZSHRC
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@shahrk
shahrk / CompletableFutureExample.java
Created June 4, 2020 17:47
Completable Future Example
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
public class CompletableFutureExample {
public static void main (String[] args) throws Exception {
showIterativeProcess();
showCompletableFuture();
}