Skip to content

Instantly share code, notes, and snippets.

View rajeshpv's full-sized avatar

Rajesh Rao rajeshpv

  • Consultant
  • Cary NC
  • 23:26 (UTC -04:00)
View GitHub Profile

pi.dev — How It Differs from Other AI CLI Tools

What Is pi.dev?

Pi is a minimal, terminal-based coding agent by Mario Zechner (creator of libGDX). Open source (MIT), installed via npm install -g @mariozechner/pi-coding-agent.

Core Philosophy

"Adapt pi to your workflows, not the other way around."

It's the "Unix philosophy" coding agent — a small, extensible harness with just 4 built-in tools (read, write, edit, bash), and everything else is user-composable.

@rajeshpv
rajeshpv / spring-valkey.md
Created March 18, 2026 16:00
sping redis aka valkey cache

Out-of-Process Caching with Redis/Valkey + Spring Boot 3.x

1. Dependencies

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<dependency>
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "kafka-python",
# ]
# ///
"""Connect to Kafka and read messages from the fcs topic."""
import os
from datetime import datetime
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "kafka-python",
# ]
# ///
"""Connect to Kafka and read messages from the fcs topic."""
import os
from kafka import KafkaConsumer
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "confluent-kafka",
# ]
# ///
"""Connect to Kafka and read messages from the fcs topic."""
import os
from confluent_kafka import Consumer

Yes — Do Not Disturb (DND) on macOS prevents notifications from popping up for almost all apps, but with a few important nuances.


What DND does block

When DND is ON:

  • ❌ No notification banners or alerts
  • ❌ No notification sounds
@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: