Skip to content

Instantly share code, notes, and snippets.

View sshh12's full-sized avatar
πŸ‘¨β€πŸ’»
Where there is code, there is code.

Shrivu Shankar sshh12

πŸ‘¨β€πŸ’»
Where there is code, there is code.
View GitHub Profile

Magnifica Humanitas

Encyclical Letter of Pope Leo XIV on safeguarding the human person in the age of artificial intelligence (15 May 2026)

*A plain-language translation of Pope Leo XIV's encyclical, rendered for a reader who is secular and technical rather than Catholic, and who may have little or no familiarity with the Bible or Christian thought. I have tried to preserve the meaning sentence by sentence, and to keep every claim the original makes β€” including its theological ones. Where the original reaches for the language of the Church, I have kept the claim and put it in plainer words, leaving its convictions standing as the author's stated convictions, so that you can follow the argument whether or not you share the belief. Biblical stories, figures, and images are briefly explained the first time they appear. The original's scholarly citation footnotes (references to earlier Church documents) have been dropped; named authors and works are folded into the text. The paragraph numbers are preserved

@sshh12
sshh12 / claude-via-codex.sh
Last active May 16, 2026 21:25
Use Claude Code CLI via OpenAI/Codex Config
#!/usr/bin/env bash
#
# Run Claude Code through a local LiteLLM gateway backed by your Codex OpenAI key.
#
# Usage:
# ./claude-through-codex -p hi
# ./claude-through-codex
#
# Requirements:
# - claude on PATH
@sshh12
sshh12 / cache-playground.html
Created May 9, 2026 21:01
Cache Ping Cost Analyzer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Claude Cache Ping Analyzer</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
@sshh12
sshh12 / saas-vibe-shorts.pine
Created March 21, 2026 00:45
Vibe Short Index (VSI)
// Vibe Short Index (VSI)
// CRM β€” Salesforce: enterprise CRM, the original cloud SaaS giant
// TEAM β€” Atlassian: Jira and Confluence, dev project management and wikis
// HUBS β€” HubSpot: lightweight CRM, marketing and sales automation for SMBs
// MNDY β€” monday.com: visual work management boards and project tracking
// ASAN β€” Asana: task and project management for teams
// Equal-weighted, indexed to 100 on 2026-03-20.
// Base prices are hard-coded so the index plots across all history.
// To re-base to a different date, update the prices in Settings > Inputs.
//
@sshh12
sshh12 / slack-system-design-reverse-engineered.md
Last active May 29, 2026 12:59
A reverse-engineered system design of Slack's web application, built from live network traffic analysis of the authenticated Enterprise Grid experience. 200+ API calls captured across boot, search, messaging, reactions, and navigation. Every backend service named.

Slack System Design: A Grounded Teardown

A reverse-engineered system design of Slack's web application, built from live network traffic analysis of the authenticated Enterprise Grid experience. 200+ API calls captured across boot, search, messaging, reactions, and navigation. Every backend service named.

Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  BROWSER (Gantry v2 SPA)                                                    β”‚
β”‚                                                                             β”‚
@sshh12
sshh12 / netflix-system-design-reverse-engineered.md
Created March 1, 2026 00:41
Netflix's web architecture reverse-engineered from live network traffic -- 18 named internal systems (Akira, Cadmium, Shakti, Pinot, MSL, FTL, Ichnaea...), dual API migration (Falcor β†’ GraphQL), video streaming pipeline, DRM flow, search capability negotiation, and the full content data model. All from 177 captured requests.

Netflix System Design: A Grounded Teardown

A reverse-engineered system design of Netflix's web application, built entirely from live network traffic analysis of the authenticated browse experience. 177 requests captured, every API contract inspected, every subsystem named.

Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  BROWSER (Akira SPA)                                                        β”‚
β”‚                                                                             β”‚
@sshh12
sshh12 / claude-chrome-extension-internals.md
Created March 1, 2026 00:14
Claude for Chrome Extension Internals (v1.0.56)

Claude for Chrome Extension Internals (v1.0.56)

A deep dive into how Anthropic's Claude for Chrome extension works under the hood, based on reading the extension's source code.

Architecture Overview

The extension is a Chrome Manifest V3 extension built with React, using the Anthropic JavaScript SDK directly in the browser. It opens as a side panel alongside the active tab and acts as an AI agent that can see and interact with web pages.

The Anthropic JS SDK is instantiated in the browser with dangerouslyAllowBrowser: true, authenticating via either OAuth PKCE (default, scopes: user:profile user:inference) or a manual API key (feature-gated for internal use).

@sshh12
sshh12 / test2.txt
Created February 11, 2026 03:14
testing deny
test
@sshh12
sshh12 / test.txt
Created February 11, 2026 03:12
test gist
hello world
declaration:youtube:get_metadata{description:Retrieves metadata of YouTube videos.,parameters:{properties:{urls:{description:Urls of videos for which metadata should be retrieved for.,items:{type:STRING},nullable:true,type:ARRAY}},propertyOrdering:[urls],type:OBJECT},response:{anyOf:[{description:Metadata of a video.,properties:{channel_id:{nullable:true,type:STRING},channel_name:{nullable:true,type:STRING},like_count:{format:int64,nullable:true,type:INTEGER},publish_date:{description:Date of when the video was published in YYYY-MM-DD format.,nullable:true,type:STRING},title:{nullable:true,type:STRING},url:{nullable:true,type:STRING},video_length:{description:The length of the video in ISO 8601 format.,nullable:true,type:STRING},view_count:{format:int64,nullable:true,type:INTEGER}},propertyOrdering:[channel_id,channel_name,like_count,publish_date,title,url,video_length,view_count],title:#/components/schemas/VideoMetadata,type:OBJECT}],type:ARRAY}}
declaration:youtube:play{description:Play video or playlist o