Skip to content

Instantly share code, notes, and snippets.

View rajeshpv's full-sized avatar

Rajesh Rao rajeshpv

  • Consultant
  • Cary NC
  • 04:49 (UTC -04:00)
View GitHub Profile
@rajeshpv
rajeshpv / K8_resouce.md
Created July 20, 2025 17:49
K8 resource alloc

In Kubernetes, Quality of Service (QoS) classes define how resources (CPU and memory) are allocated to pods, especially during times of resource contention. The three QoS classes are:

  • Guaranteed
  • Burstable
  • BestEffort

Here’s a breakdown of the difference between Burstable and Guaranteed QoS classes:


Here's a clear and honest comparison of Kaplan vs. Princeton Review SAT prep courses, based on pricing, features, teaching style, and results.


🧠 1. Teaching & Curriculum

Feature Kaplan Princeton Review
Teaching Style Structured, test-focused Deep content review + strategy
Class Options Live Online, On Demand, Tutoring Live Online, On Demand, Tutoring
@rajeshpv
rajeshpv / agile_in_my_words.md
Last active April 8, 2025 14:17
Agile in my words :)

My Agile Experience and Insights

In my previous workplace, Agile was followed and executed seriously. Before that, I used to wonder why time constraints or measurements were necessary in technology, software development, or innovation. But in the real world, especially in a competitive market, if we cannot plan and deliver predictably, we are already too late.
Put simply: daily improvement is today’s innovation.

Key Insights from My Agile Experience

  • For Agile to be truly successful, a cohesive and stable team is essential. Sticking with the same team over time builds consistency, trust, and velocity.

  • Here’s how I like to define Agile in simple terms using an analogy:

@rajeshpv
rajeshpv / jvm_stat.md
Created March 27, 2025 13:54
jvm_stat

Capturing JVM heap allocation and comparing it between two executions of a Java application can be super insightful when you're analyzing memory usage, leaks, or performance. Here’s a practical way to do it:


🚀 Step-by-Step Guide

✅ 1. Enable JVM Heap Monitoring

Use the following Java options when running your app to capture memory usage:

@rajeshpv
rajeshpv / k8-ping.sh
Created February 12, 2025 00:43
Pings every 10 secs with 1 sec timeout to simulate k8 live probe test
#!/bin/bash
# have export APP_URL="http://service.com/"
LOG_FILE="output-k8-ping.log"
while true; do
# Run curl and capture output + exit code
# note: curl is given 1 sec of timeout else to error out (the -m 1)
OUTPUT=$(curl -m 1 -o /dev/null -s -w "{ DNS_Lookup: %{time_namelookup}, TCP_Connect: %{time_connect}, SSL_Handshake: %{time_appconnect}, TTFB: %{time_starttransfer}, Total_Time: %{time_total} }s\n" "$APP_URL")
EXIT_CODE=$?
db.collectionA.insertMany([
    { "_id": 1, "field1A": "A", "field2A": 100 },
    { "_id": 2, "field1A": "B", "field2A": 200 }

]);

db.collectionB.insertMany([
 { "_id": 1, "field1B": "A", "field2B": 100 },
customer_id first_name last_name email phone
9570aa41 FirstName_0 LastName_0 [email protected] 555-346-2017
a19ed48f FirstName_1 LastName_1 [email protected] 555-245-3957
50dc2c60 FirstName_2 LastName_2 [email protected] 555-346-8574
8d4efb02 FirstName_3 LastName_3 [email protected] 555-135-1604
590dabf6 FirstName_4 LastName_4 [email protected] 555-646-9251
59b4ff89 FirstName_5 LastName_5 [email protected] 555-517-9440
f01fbd86 FirstName_6 LastName_6 [email protected] 555-903-3764
40433ae9 FirstName_7 LastName_7 [email protected] 555-669-1841
e23fb906 FirstName_8 LastName_8 [email protected] 555-717-5625
order_id customer_id order_date amount status
1c92ff7b cdab7200 2023-01-01 40.76 Pending
05b3bde1 d71feebd 2023-01-02 217.2 Cancelled
72f48718 031d760a 2023-01-03 142.03 Pending
2b9c0240 ef21b0e1 2023-01-04 427.12 Completed
574ce318 fefd0560 2023-01-05 211.29 Cancelled
cd9c285f 83054752 2023-01-06 307.7 Completed
c24fe3ff ff5769ea 2023-01-07 443.99 Completed
58e08398 031d760a 2023-01-08 438.17 Cancelled
a1503b9a fc07531f 2023-01-09 362.1 Cancelled

Do you call this Rhetoric Message or conversation !?, I feel it is bullying !!! :) or thinking - I can say what I like and you cannot do anything :)

image image

@rajeshpv
rajeshpv / api-list.md
Created October 4, 2024 02:05
public api for facility details

Here is a summary of public or commercial APIs for facility details like building area, living capacity, etc., based on postal address:

API Name Purpose Data Provided Access Website
Zillow API Provides real estate data Home size, lot area, home values, historical data Requires registration Zillow API
Estated API Comprehensive property data Lot size, building area, rooms, property tax, owner info