Skip to content

Instantly share code, notes, and snippets.

@the-solipsist
the-solipsist / judicial-corruption.md
Created February 26, 2026 18:37
NCERT Social Science Textbook on Corruption in the Judiciary

Corruption in the Judiciary

Judges are bound by a code of conduct that governs not only their behaviour in court, but also how they conduct themselves outside it. This code, known as the Bangalore Principles of Judicial Conduct (so named because the initial drafts were prepared in Bangalore over two decades ago), emphasises that judges must be seen by the public as fair and impartial. They must avoid any action, in their personal and professional lives, that could cause the public to question their integrity.

When judges fail to uphold these standards, the judiciary has an internal mechanism to maintain accountability and ensure that judges follow the values of judicial life. There is an established procedure for receiving complaints through the Centralised Public Grievance Redress and Monitoring System (CPGRAMS). Between 2017 and 2021, for example, over 1600 such complaints were received. In cases where the allegations are serious, the Parliament can take action by passing a motion of impeachment. Such a

@the-solipsist
the-solipsist / convert_to_beancount.py
Created February 5, 2026 20:51
Script for conversion from {h}ledger prices to beancount prices
#!/usr/bin/env python3
"""
Convert price entries to Beancount format.
Usage: python convert_to_beancount.py prices.l > beancount_prices.bean
The converter handles:
- Currency symbol conversion (₹→INR, $→USD, £→GBP, €→EUR)
- Removal of commas from prices
- Quoted commodity names
@the-solipsist
the-solipsist / RBI_FOREX_REFERENCE_RATES_DOCUMENTATION.md
Created February 5, 2026 14:20
Complete Historical Archive of RBI Forex Reference Rates (1998-2026) - Corrected Version

RBI Forex Reference Rates Archive (1998-2026)

Overview

This archive contains a comprehensive, gap-free historical dataset of the Reserve Bank of India (RBI) Reference Exchange Rates for major currencies against the Indian Rupee (INR).

Coverage: August 25, 1998 to February 5, 2026 (27.5 years) Total Records: 26,017 Total Trading Days: 6,520

Currencies Included

@the-solipsist
the-solipsist / curl.sh
Last active February 5, 2026 08:57
RBI reference rates via NSE
curl 'https://www.nseindia.com/api/historicalOR/rbi-reference-rate-stats' -H 'User-Agent: Mozilla' | jq .
@the-solipsist
the-solipsist / gstr1-json-specification-validation.md
Last active January 13, 2026 13:19
GSTR-1 JSON Validation Rules

GSTR-1 JSON Specification & Validation Rules

This document provides a comprehensive overview of the GSTR-1 JSON data format, its architectural requirements, and the strict validation rules necessary for successful submission to the GSTN portal. The GSTN hasn't published an official JSON schema.. So this has been reverse engineered based on validity testing against the official GST website, APIs found online, and the documentation associated with the "GST Offline Tool".


1. Introduction to GSTR-1

GSTR-1 is a mandatory return for all GST-registered businesses in India, used to report details of all outward supplies (sales).

Filing Frequency

@the-solipsist
the-solipsist / sahyog-censorship.txt
Created October 18, 2025 18:02
X.com tweets censored via the Sahyog portal
https://x.com/asurofficial/status/1892492574608196069?s=48&t=mz5m-YOXBHhEZ6gdFUB6qw
https://x.com/Adv_rj24/status/1889527184014057942
https://x.com/DSourcelnsight/status/1870498250962194730
https://x.com/C90284166/status/1870128816762569208
https://x.com/TheFederal_News/status/1870024355222356336
https://x.com/ltsKhan_Saba/status/1869959973113082266
https://x.com/htTweets/status/1869978537094197426
https://x.com/thequotesnews/status/1870001442687463935
https://x.com/latestly/status/1869980166644216076
https://x.com/lokmattimeseng/status/1869959934592389234
@the-solipsist
the-solipsist / upsc-2024_recommended-candidates.tsv
Last active May 19, 2025 03:40
TSV of the recommended candidates from the 2024 UPSC exams | Names removed + a composite `reservation_category` added.
@the-solipsist
the-solipsist / blocked_accounts.txt
Last active March 1, 2026 19:10
Twitter/X accounts blocked in India due to legal demands by the Indian government. These accounts were unavailable from an Indian IP address from 2025-05-03 onward.
@322otaku
@_FaridKhan
@aak1880
@abbasnasir59
@Abdullah795895
@AbdullahKhan333
@abeer_jahangir
@ABLashariDGK
@Abraham21245215
@AbuHafsah1
@the-solipsist
the-solipsist / usa-balance_of_trade-2024.csv
Last active April 14, 2025 20:38
USA's 2024 balance of trade against countries and areas (used in USTR's tariff formula)
year CTYNAME IYR EYR
2024 European Union 605760.393292 370189.230351
2024 World, Seasonally Adjusted 3267460.598735 2065131.061971
2024 Advanced Technology Products 763239.061303 464290.844933
2024 South and Central America 158813.069142 206144.200255
2024 North America 918546.31846 683401.298991
2024 Europe 770791.040045 503629.070492
2024 Africa 39514.999022 32125.813165
2024 Pacific Rim 1001672.349154 491850.736295
2024 World, Not Seasonally Adjusted 3267460.598737 2065131.061971
@the-solipsist
the-solipsist / hledger-jj
Last active January 19, 2026 13:16
hledger-jj converted from ysh to bash by Gemini 3.0
#!/usr/bin/env bash
# -*- sh -*-
# hledger-jj v2.0
#
# A bash wrapper for using Jujutsu (jj) with hledger journals.
#
# Credits & Version History:
# v2.0 - Added -f support, improved architecture, and fixed exit codes by Gemini 3.0 Pro.
# v1.0 - Ported from the original YSH script to Bash by Gemini 2.0.
# Original Idea & YSH Script by Simon Michael.