Skip to content

Instantly share code, notes, and snippets.

View rupeshtiwari's full-sized avatar
🎯
Focusing

Rupesh Tiwari rupeshtiwari

🎯
Focusing
View GitHub Profile
@rupeshtiwari
rupeshtiwari / Elasticsearch to OpenSearch migration.md
Last active April 19, 2024 14:35
Elasticsearch to OpenSearch migration

1.5 to 6.8

flowchart TD
    ES1_5("1. Elasticsearch 1.5\nUse migration plugin and snapshot") -->|Snapshot & restore| ES2_3("2. Elasticsearch 2.3\nRestore snapshot from 1.5\nReview
@rupeshtiwari
rupeshtiwari / Migration Assistant for Amazon OpenSearch Service.md
Last active April 19, 2024 15:24
Migration Assistant for Amazon OpenSearch Service

Migration Assistant for Amazon OpenSearch Service Workshop

Prerequisite

  • aws cli installed
  • aws credentials configured
  • Installed session manager plugin
brew install --cask session-manager-plugin
@rupeshtiwari
rupeshtiwari / python frontend framework.md
Last active April 11, 2024 17:26
Python Frontend Framework

Building Lightweight Web Apps with Flask, HTMX, and Alpine.js

Creating fast, mobile-friendly web applications is crucial in today's fast-paced digital world. Flask, a Python web framework, offers a minimalistic yet powerful platform for developers looking to build efficient applications. For the frontend, HTMX and Alpine.js provide modern, lightweight solutions for dynamic interfaces without the overhead of heavier frameworks. HTMX enhances HTML to support AJAX and other dynamic behaviors seamlessly, while Alpine.js brings the reactivity of Vue or React in a much smaller package. Both are designed to ensure your applications are responsive and perform well on mobile devices. Dive into their ecosystems with the provided tutorials and get your application running in no time.

  • Flask:

    • Tutorial & Installation: Explore the official Flask Quickstart guide, which includes installation instructions and a basic application setup.
  • HTMX:

@rupeshtiwari
rupeshtiwari / install minikube on macos.md
Last active March 28, 2024 22:09
install minikube on macos, kubernetes

If you're getting a "command not found" error for Minikube, it means that Minikube is either not installed on your system or it's not added to your system's PATH. Here are the steps to install Minikube and start a local Kubernetes cluster:

Installing Minikube:

  1. Download Minikube:

    On macOS, you can use Homebrew:

brew install minikube

@rupeshtiwari
rupeshtiwari / ism example.md
Last active March 21, 2024 06:34
ism example,opensearch ism policy,

Times will be longer because ISM takes some minutes between checking status and applying settings. It may take about 10 minutes to start.

Prerequisite

Create opensearch domain, make sure to enable dedicated master nodes and enable ultrawarm and cold storage

image

Step 1: Create Index Template and Datastream

@rupeshtiwari
rupeshtiwari / installing mongodb on macos.md
Last active March 18, 2024 22:59
Installing mongodb on macos

Installing mongodb on MacOS


Install Homebrew if not installed

image

**Step 1: **

@rupeshtiwari
rupeshtiwari / Install Consul in Macos.md
Created March 17, 2024 18:14
Install Consul in Macos

Install Consul on macos

brew tap hashicorp/tap
brew install hashicorp/tap/consul

image

Start Consul in Development mode

@rupeshtiwari
rupeshtiwari / installing kafka on macos.md
Created March 12, 2024 05:59
installing kafka on macos

Installing and running Apache Kafka on macOS involves several steps because Kafka depends on Zookeeper for cluster management. Below are the steps to install Kafka and Zookeeper using Homebrew, create a Kafka topic, and verify that Kafka is running correctly.

Step 1: Install Homebrew

First, ensure that Homebrew is installed on your macOS. If not, you can install it by running the following command in the Terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@rupeshtiwari
rupeshtiwari / install rabbitmq on macos.md
Last active March 12, 2024 05:23
install rabbitmq on macos

To install and run RabbitMQ on macOS using Homebrew, follow these steps. This guide assumes you have Homebrew installed on your macOS. If you haven't installed Homebrew yet, you can find the installation instructions at https://brew.sh/.

Step 1: Install RabbitMQ

  1. Open a Terminal window on your macOS.
  2. Update Homebrew to ensure you have the latest package definitions. Run:
    brew update
  3. Install RabbitMQ using Homebrew by running:
@rupeshtiwari
rupeshtiwari / install redis on macos.md
Last active March 12, 2024 05:10
install redis on macos

Installing and running Redis on macOS can be done in several ways, including using Homebrew (a package manager for macOS), downloading and compiling from source, or running it as a Docker container. The simplest method for most users is via Homebrew.

Installing Redis with Homebrew:

  1. Install Homebrew: If you don't already have Homebrew installed on your Mac, open the Terminal app and run the following command. This script installs Homebrew itself.

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"