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 / mydata.md
Created December 12, 2025 16:06
mermaid example
flowchart LR

    subgraph Clients
        D1[Wearable Device]
        D2[Mobile App]
    end

    subgraph Ingestion
        AGW[API Gateway / Load Balancer]
@rupeshtiwari
rupeshtiwari / Fixing Agnoster Prompt + Hiding tmux Green Bar.md
Last active December 9, 2025 17:24
Fixing Agnoster Prompt + Hiding tmux Green Bar
  • Agnoster prompt fixes
  • New-line arrow cursor
  • tmux green-bar fix

Clean Agnoster Prompt + Hidden tmux Status Bar (Mac / zsh)

@rupeshtiwari
rupeshtiwari / .zshrc
Last active December 9, 2025 13:01
my zshrc file
# 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
@rupeshtiwari
rupeshtiwari / download_m4s.md
Last active April 30, 2025 12:22
download m4s files
brew install yt-dlp


yt-dlp --verbose --allow-unplayable-formats --merge-output-format mp4 -f "bv*+ba/b" "https://classes.gdvpanel.in/guruji-live-classes/01/dash/stream.mpd"

@rupeshtiwari
rupeshtiwari / git config settings for 2 profiles.md
Last active October 16, 2024 12:53
git settings for 2 profiles switch between gits

Let's walk through the full steps to generate a new personal_rsa key for your personal projects (if it doesn't already exist), set up the SSH configuration for both accounts, and smoothly switch between them.

Step 1: Check for Existing SSH Keys

First, let's check if you already have a personal SSH key, such as personal_rsa or id_rsa.

Run this command to list the SSH keys in your ~/.ssh/ directory:

ls ~/.ssh/
@rupeshtiwari
rupeshtiwari / aws forecast demo.md
Created September 11, 2024 14:03
aws forecast demo

To build a short demo for AWS Forecast, you’ll want to focus on the key steps involved in setting up, training, and generating predictions. Here's a simple guide to create a short demo:

1. Define the Scope of the Demo (5-10 minutes)

  • Objective: Show how to upload historical data, train a model, and generate predictions using AWS Forecast.
  • Example Use Case: Predict demand for a product based on historical sales data.

2. Prepare Your Data (1 minute)

  • Use a simple time-series dataset (e.g., historical sales, demand data, or temperature).
  • Format the dataset as CSV with columns such as timestamp, item_id, and demand.
  • Make sure the dataset is in a format acceptable by AWS Forecast (e.g., Amazon S3 CSV file).
@rupeshtiwari
rupeshtiwari / 02_backup_android_all_incremental.sh
Last active July 25, 2025 09:14
samsung android mobile copy to mac laptop | backup mobile | copy android data on MACOS
#!/bin/bash
# How to use:
# chmod +x backup_android_all_incremental.sh
# ./backup_android_all_incremental.sh
# ./backup_android_all_incremental.sh --silent OR -s
# --------------
# Parse args
SILENT=0
@rupeshtiwari
rupeshtiwari / AWS Machine Learning Certification Notes.md
Last active November 5, 2025 21:13
AWS Machine Learning Certification Notes

Preparing for the AWS Certified Machine Learning – Specialty Exam: Key Concepts and Tools

Earning the AWS Certified Machine Learning – Specialty certification requires a solid understanding of various machine learning concepts, tools, and AWS services. Here are some of the key topics and resources that helped me prepare for the exam.

What is classifier?

In Amazon SageMaker, a classifier is a type of machine learning model that categorizes or classifies data into distinct classes or categories based on input features. Here are the key concepts related to classifiers and the metrics used to evaluate them:

Key Metrics for Classifiers

  1. Accuracy:
@rupeshtiwari
rupeshtiwari / OpenSearch Basics.md
Last active June 13, 2024 02:06
OpenSearch Basics

What is OpenSearch and Amazon OpenSearch Service

OpenSearch is a distributed, community-driven, Apache 2.0-licensed, 100% open-source search and analytics suite used for a broad set of use cases like real-time application monitoring, log analytics, and website search. OpenSearch provides a highly scalable system for providing fast access and response to large volumes of data with an integrated visualization tool, OpenSearch Dashboards, that makes it easy for users to explore their data. OpenSearch is powered by the Apache Lucene search library, and it supports a number of search and analytics capabilities such as k-nearest neighbors (KNN) search, SQL, Anomaly Detection, Machine Learning Commons, Trace Analytics, full-text search, and more.

Amazon OpenSearch Service is an AWS-managed service that lets you run and scale OpenSearch clusters without having to worry about managing, monitoring, and maintaining your infrastructure, or having to build in-depth expertise in operating OpenSearch clusters