Skip to content

Instantly share code, notes, and snippets.

View ChakshuGautam's full-sized avatar
😁

Chakshu Gautam ChakshuGautam

😁
View GitHub Profile
@ChakshuGautam
ChakshuGautam / stencil.repo-structure.md
Last active May 21, 2024 08:20
Stencil Repo Structure

Monorepo

readme.md
/docs
/packages (npm)
      /chat-ui
      /molecules
           /chat-ui (x)
           index.ts 
 package.json
@ChakshuGautam
ChakshuGautam / aadhaar-kyc.md
Last active April 13, 2024 14:57
Aadhaar KYC

Aadhaar KYC

This document assumes that Aadhaar KYC can be done in one of the following ways

  1. Digilocker Login - Digilocker allows for Aadhaar based login and the APIs are provided through Meripehchan. Can be forced to use only Aadhaar or PAN using the acr parameter (page 5 here). Either the user will login through digilocker using aadhaar or a second API call to get the user profile and verify if eadhaar is linked to the DL account (page 9 here)j. This option is self validation and hence can be done for free.
  2. Through AUA - AUAs are generally available in all states and provider wrapper APIs over Aadhaar eKYC APIs.
@ChakshuGautam
ChakshuGautam / rca.uci.md
Last active March 23, 2024 07:51
UCI Docker Compose RCA

The state for current Docker Deployments for UCI

Name Command State
docker-deploy-prod_aggregate-db_1 docker-entrypoint.sh postgres Exit 0
docker-deploy-prod_aggregate-server_1 catalina.sh run Exit 143
docker-deploy-prod_akhq_1 docker-entrypoint.sh ./akhq Exit 137
docker-deploy-prod_analyticsdb_1 docker-entrypoint.sh postgres Exit 0
docker-deploy-prod_broadcast-transformer_1 java -Xmx1024m -Xshareclas ... Up
docker-deploy-prod_cache_1 docker-entrypoint.sh redis ... Exit 0
{
 "start": "transformer1",
 "transformer1": {
     "impl": "tranform(xMsg) => {xMsg, state}",
     "states": [
        "onSuccess",
        "onFailure",
     ],
 "onSuccess": "tranformer2",
@ChakshuGautam
ChakshuGautam / agentic-chunking.txt
Created February 11, 2024 04:02
Agentic-Chunking.txt
Chunk ID: cfe921a4
Chunk Title: Transforming India's Schooling System with the National Education Policy 2020 and National Curriculum Framework for School Education
Chunk Summary: The National Education Policy 2020 aims to transform India's schooling system and provide high-quality education for all students. The National Curriculum Framework for School Education aims to make positive changes in school curricula, including subject content, teaching methods, and the overall school environment and culture.
Propositions:
- The National Education Policy 2020 called for a complete transformation of India’s schooling system.
- The transformation aims to make the schooling system of the highest quality for all students equitably.
- The purpose of the National Curriculum Framework for School Education is to help bring about positive changes in India’s school curricula.
- The ‘curriculum’ includes not just the subject content of textbooks and other teaching-learning materials and their pedagogy.
-
@ChakshuGautam
ChakshuGautam / gist:ac1e76f55cb3ef47fea7daf4c33b0ae7
Created February 5, 2024 12:15
Docs on GitHub Pages vs Vercel (for BharatSahAIyak)
## Context
1. There is a Vercel that we already maintain.
2. There is also a doc template that is one click deployment to vercel.
3. We generally deploy markdown files only on vercel.
## GitHub Pages - Pros || Vercel Cons
1. Easier for a new devloper. They would know GH Pages before vercel.
2. No other tool.
## GitHub Page - Cons || Vercel Pros
@ChakshuGautam
ChakshuGautam / response.bingai.json
Created February 4, 2024 05:25
Bing AI Response Format
{
"type": 2,
"invocationId": "2",
"item": {
"messages": [
{
"text": "Who is the present president of india",
"author": "user",
"from": {
"id": "985157419497049",
@ChakshuGautam
ChakshuGautam / akin-spacecraft.md
Created November 7, 2023 10:05
Akin's Law of Spacecraft Design
  1. Engineering is done with numbers. Analysis without numbers is only an opinion.

  2. To design a spacecraft right takes an infinite amount of effort. This is why it's a good idea to design them to operate when some things are wrong.

  3. Design is an iterative process. The necessary number of iterations is one more than the number you have currently done. This is true at any point in time.

  4. Your best design efforts will inevitably wind up being useless in the final design. Learn to live with the disappointment.

  5. (Miller's Law) Three points determine a curve.