Skip to content

Instantly share code, notes, and snippets.

View rsrini7's full-sized avatar
😃
Happy

Srinivasan Ragothaman rsrini7

😃
Happy
View GitHub Profile
@rsrini7
rsrini7 / BlockchainLayers.md
Created December 16, 2025 09:53
Blockchain Layered Architecture

The Layered Architecture of Blockchain Technology

A Technical Analysis of Scalability, Interoperability, and Application Design

1. Executive Summary

Blockchain technology is not a monolith but a modular stack of protocols designed to solve the "Scalability Trilemma"—the difficulty of achieving decentralization, security, and scalability simultaneously. This paper dissects the four critical layers (0 through 3) that comprise the modern Web3 stack, analyzing how each layer addresses specific technical bottlenecks to enable real-world utility.

2. Layer 0: The Network & Interoperability Layer

Function: The "internet of blockchains." Layer 0 (L0) provides the underlying infrastructure that allows multiple Layer 1 blockchains to function and communicate. It solves the issue of fragmentation by enabling cross-chain interoperability and shared security.

@rsrini7
rsrini7 / hardhat-docker.md
Created December 15, 2025 13:33
Hardhat sample

1. Project overview

This tutorial repo is a modified Hardhat boilerplate that uses Docker, TypeScript, Viem, and a Vite React dApp to show a complete local Web3 stack. It runs a local Hardhat node in Docker, deploys a token contract with Ignition, and connects a front end through MetaMask to interact with that contract.[1]

2. Prerequisites

Ensure the following are installed on your machine before starting:

  • Docker Desktop (or Docker Engine + Docker Compose) for running the Hardhat node and associated services.[1]
  • Git and a recent Node.js (if you want to run any commands directly inside the containers with npx).[1]
@rsrini7
rsrini7 / hardhat-steps.md
Created December 14, 2025 16:23
Blockchain Hardhat Steps

Mastering Hardhat for Solidity Development

A Technical Guide to Building, Testing, and Deploying Smart Contracts

Executive Summary

Hardhat is a comprehensive development environment for Ethereum software. It facilitates performing frequent tasks, such as running tests, automatically checking code for mistakes, interacting with smart contracts, and debugging. Unlike web-based editors like Remix, Hardhat offers a robust local environment essential for professional-grade development, enabling faster iteration and integration with local blockchains [00:22].


@rsrini7
rsrini7 / Java-Plugin-Arch.md
Last active December 14, 2025 07:02
Java Plugin Architecture

Plugin & Extension Architecture in Java — System Design Perspective

Problem Statement

How do we design a system that can evolve, be extended, or customized without tightly coupling components or redeploying the entire application?


Core Design Axes

@rsrini7
rsrini7 / system-design-yt.txt
Last active December 13, 2025 17:51
system design youtube channels
https://www.youtube.com/@tryexponent
https://www.youtube.com/@TechDummiesNarendraL
https://www.youtube.com/@jordanhasnolife5163
https://www.youtube.com/@codeKarle
https://www.youtube.com/@TryExcept-10110/videos
https://www.youtube.com/@designgurus1173
https://www.youtube.com/@gkcs
https://www.youtube.com/@SanketSingh1
https://www.youtube.com/@AsliEngineering
https://www.youtube.com/@ByteMonk
@rsrini7
rsrini7 / PMRoles.md
Created December 13, 2025 12:04
Product Management & AI: Evolving PM Roles

Product Management & AI: Evolving PM Roles

Overview

AI-native companies are fundamentally reshaping product management, moving away from traditional PM patterns toward more agile, builder-focused roles. Here's what's changing:


Key Transformations

1. Team Structure Shift

@rsrini7
rsrini7 / rust-vs-c.md
Created December 13, 2025 06:12
Rust-vs-C Binary size comparition

Base

1. Initial Compilation & Size Comparison

Timestamp: [00:44] The narrator compiles a basic "Hello World" program in both Rust and C.

  • Commands:
    rustc main.rs -o hello_r
@rsrini7
rsrini7 / Largest WhatsApp Data Leak in History.md
Last active November 23, 2025 17:49
Largest WhatsApp Data Leak in History

Largest WhatsApp Data Leak in History

Overview

  • Researchers from the University of Vienna and SBA Research uncovered a massive privacy vulnerability in WhatsApp impacting over 3.5 billion users worldwide, making it potentially the largest data leak in history.[^3][^5]
  • The leak exploited a flaw in WhatsApp’s contact lookup feature — a function designed to let users find others by their phone numbers.[^5][^9]

Vulnerability Details

@rsrini7
rsrini7 / cloudflare-down-nov-2025.md
Created November 23, 2025 17:29
cloudflare-down-nov-2025

Cloudflare Outage (November 18, 2025) – Step-By-Step Technical Incident Analysis

1. Permissions Change on ClickHouse

  • Engineer ran an RBAC update to improve security.
  • Example:
    ALTER TABLE permissions REVOKE ALL ON database.* FROM ROLE 'botmgmt_reader';
    

2. Config Generation Bug

@rsrini7
rsrini7 / insta-user-eng.md
Created November 18, 2025 02:37
Improve individual user engagement Instagram

Functional and Business Requirements

  • Goal: Improve individual user engagement (view, like, comment) on suggested posts—boosting metrics like Daily Active Users (DAU) and session numbers.
  • Scope: Focus on non-friend content (from creators, not just connections). Aim is to predict and increase personalized engagement.
  • ML Objective: Aligns with business needs but optimizes a correlated surrogate metric (like engagement probability) at the user level, not global DAU directly.