Skip to content

Instantly share code, notes, and snippets.

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
# Set list of themes to pick from when loading at random
@jrishabh55
jrishabh55 / setup1.sh
Last active August 21, 2022 16:39
Macbook Setup
#!/usr/bin/env zsh
# Setup script for setting up a new macos machine
EMAIL="hello@rishabhjain.dev"
NAME="Rishabh Jain"
echo "Starting setup"
ssh-keygen -t ed25519 -C $EMAIL
// Fetching all results from an ES cluster for exporting.
scrollApi(info) {
this.scrollQuery(info.activeQuery, info.scroll, info.scroll_id)
.then((res) => {
const data = this.getScrollApiData(res);
if (data) {
try {
let exportData = JSON.parse(data);
exportData = exportData.map((value) => {