This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) => { |