Skip to content

Instantly share code, notes, and snippets.

View jalotra's full-sized avatar

ShivamJalotra jalotra

View GitHub Profile
curl --location 'https://scr.sci.gov.in/scrsearch/?p=pdf_search%2Fopenpdfcaptcha' \
--header 'Accept: application/json, text/javascript, */*; q=0.01' \
--header 'Accept-Language: en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
--header 'DNT: 1' \
--header 'Origin: https://scr.sci.gov.in' \
--header 'Referer: https://scr.sci.gov.in/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
[
{
"name": "StepTemplate",
"fields": [
{
"dataType": "java.lang.String",
"fieldName": "name",
"nullable": false
},
{

Low Level Design - Legal Case Management System

System Architecture Overview

The system uses a multi-database architecture with three specialized databases working together to provide comprehensive legal case search and discovery capabilities.

Database Schemas

1. Relational Database (PostgreSQL)

@jalotra
jalotra / sample_gemma_27B_api
Last active May 27, 2025 08:41
ocr_example_api_using_gemma_3_27B_model
curl --location 'https://kygflev33eqwy6b9.us-east-1.aws.endpoints.huggingface.cloud/v1/chat/completions' \
--header 'Authorization: Bearer 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' \
--header 'Content-Type: application/json' \
--data '{
"model": "tgi",
"messages": [
{
"role": "user",
"content": [
{
'<!DOCTYPE html><html lang="en"><head>\n <meta name="pageKey" content="d_ad-library-detail">\n<!----><!----> <meta name="locale" content="en_US">\n <meta id="config" data-app-version="0.0.1626" data-call-tree-id="AAYz+yc9uPdiifyfgkJQcg==" data-multiproduct-name="ads-guest-frontend" data-service-name="ads-guest-frontend" data-browser-id="e1d92387-be48-4608-8df8-c1c4810331f3" data-enable-page-view-heartbeat-tracking="" data-page-instance="urn:li:page:d_ad-library-detail;tkwl0ifvSWaZr7A1jklo6A==" data-disable-jsbeacon-pagekey-suffix="true" data-member-id="0" data-dna-member-lix-treatment="enabled" data-human-member-lix-treatment="enabled" data-dfp-member-lix-treatment="control" data-sync-apfc-headers-lix-treatment="control" data-sync-apfc-cb-lix-treatment="enabled">\n\n <link rel="canonical" href="/ad-library/detail/409470296">\n<!----><!---->\n<!---->\n<!---->\n<!---->\n<!---->\n <link rel="icon" href="https://static.licdn.com/aero-v1/sc/h/al2o9zrvru7aqj8e1x2rzsrca">\n\n
import React from 'react';
// import { ArrowRightIcon } from '@heroicons/react/24/solid';
type JobPosting = {
title: string;
subtitle: string;
href: string;
};
/* One job card component */
{
"status": {
"code": "CM000",
"message": "Success"
},
"data": [
{
"jsonSchema": {
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
{
"allInvestors": [
"Salesforce Ventures",
"Greycroft",
"Kleiner Perkins",
"General Motors Ventures",
"Harbert Growth Partners",
"ServiceNow",
"Lighter Capital",
"Vision Ridge Capital Partners",
{
"id": "uuid4",
"description": "A representation of a account object post",
"active" : true,
"version" : "0.0.1"
"createadAt" : <timestamp>,
"updatedAt" : <timestamp>,
"coreObjectType" : "ACCOUNT"
"type": "object",
"required": ["title", "content", "author"],
{
"id": "uuid4",
"coreObjectName": "ACCOUNT",
"version": "0.0.1",
"description": "This defines the waterfall rules",
"createdAt": "timestamp",
"updatedAt": "timestamp",
"active": true,
"rules" : {
"global" : [