Skip to content

Instantly share code, notes, and snippets.

View ssv445's full-sized avatar

Shyam Verma ssv445

View GitHub Profile
@ssv445
ssv445 / desk-posture-checklist-for-developers.md
Created November 20, 2026 08:42
Desk posture checklist for developers (10 minutes)

Desk posture checklist for developers (10 minutes)

I've worked at a desk for over 20 years. Over 8 working days in late October and early November, the posture app I build nudged me 194 times for having my hand on my face. That's about 24 a day on average. I had no idea. So here is the short list I now run through when I set up a desk, mine or a new one.

I'm assuming you sit at a desk most of the day. This is desk setup advice. If something hurts, see a doctor or a physiotherapist.

1. Chair and desk (2 minutes)

  1. Sit back fully in the chair. Your feet rest flat on the floor (or on a box or a step stool if they don't reach).
  2. Set the chair so your elbows bend to about 90°, forearms level and shoulders relaxed.
  3. Your elbows sit level with the desk top. If the desk is too high, raise the chair and put your feet on the box or step stool.
@ssv445
ssv445 / macos-sqlite-databases.md
Created September 15, 2026 11:55 — forked from pmanot/macos-sqlite-databases.md
macOS SQLite database paths and schemas

macOS SQLite database paths and schemas

Path inventory: 2026-01-21. Table inventories: 2026-06-10. macOS build was not recorded in the original inventory.

~ denotes the user's home directory. Paths and schemas vary by macOS version, account configuration, and library location. Listed columns are schema examples; their presence does not establish populated values or retention periods.

Knowledge

~/Library/Application Support/Knowledge/knowledgeC.db
@ssv445
ssv445 / auth-flow-prototype.html
Created May 21, 2026 06:09
EcoMitram auth flow redesign prototype — issue #773
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Auth flow redesign · prototype · #773</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=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
@ssv445
ssv445 / tax-loss-harvesting-india.md
Last active March 29, 2026 05:08
Find Tax Loss Harvesting Opportunities in Your Equity Portfolio

You are an Indian capital gains tax analyst. I want to DISCOVER if any tax-loss harvesting opportunities exist in my portfolio. Don't tell me what to buy or sell — just show me the opportunities and the potential tax impact. I'll decide what to do.

FY: 2025-26 (AY 2026-27). Use these EXACT rates — do not look up or change:

  • STCG (Section 111A): 20% on listed equity (STT paid)
  • LTCG (Section 112A): 12.5% on listed equity above Rs 1,25,000 annual exemption
  • Health & Education Cess: 4% on tax
  • No indexation benefit for listed equity
@ssv445
ssv445 / DynamicIframe.tsx
Created February 28, 2025 04:53
Dynamically Embedding HTML in Next.js Using iframes: When working with dynamic HTML in Next.js, you might need to handle content that includes external scripts, stylesheets, and inline JavaScript. Instead of using dangerouslySetInnerHTML, which doesn’t execute scripts, a more effective solution is embedding the HTML inside an iframe.
"use client";
import { useEffect, useRef, useState } from "react";
const DynamicIframe = ({ htmlContent }: { htmlContent: string }) => {
const iframeRef = useRef<HTMLIFrameElement>(null);
const [height, setHeight] = useState("100px"); // Default height
useEffect(() => {
const handleMessage = (event: MessageEvent) => {
if (event.data.height) {
@ssv445
ssv445 / DirectusLoader.tsx
Created February 23, 2025 04:29 — forked from davidpp/DirectusLoader.tsx
NextJS image loader for Directus
import type { ImageLoaderProps } from 'next/image'
const imgDomain = process.env.NEXT_PUBLIC_IMG_DOMAIN ?? ''
interface DirectusImageProps {
fit?: 'cover' | 'contain' | 'inside' | 'outside'
}
export default function directusImageLoader({
src: imageID,
@ssv445
ssv445 / Twitter-Interest-List-Reset-Script.js
Last active August 25, 2025 22:52
Twitter Interest List Reset Script (One Liner)
const checkboxes = document.querySelectorAll('input[type=checkbox]');
let index = 0;
(function uncheckNext() { if (index >= checkboxes.length) return; try { if (checkboxes[index].checked) { checkboxes[index].click(); console.log(`Unchecked checkbox at index ${index}`); } else { console.log(`Checkbox at index ${index} is already unchecked`); } index++; setTimeout(uncheckNext, 1000); } catch (error) { console.error('Error while unchecking checkbox:', error); setTimeout(uncheckNext, 5000); } })();
@ssv445
ssv445 / UploadService.js
Created November 2, 2023 05:17
Uploading a file to AWS presignedUrl using streaming the given file as a Url
"use strict";
const axios = require("axios");
const https = require("https");
async function uploadFileToPresignedUrl(presignedUrl, fileUrl) {
const response = await axios({
method: "get",
url: fileUrl,
responseType: "stream",
httpsAgent: new https.Agent({ keepAlive: true }),
@ssv445
ssv445 / docker-compose-macm1.yml
Created September 19, 2023 16:52
.devcontainer/docker-compose-macm1.yml
version: '3'
services:
app:
build:
context: .
dockerfile: nodejs/Dockerfile
args:
# Update 'VARIANT' to pick an LTS version of Node.js: 16, 14, 12.
# Append -bullseye or -buster to pin to an OS version.
@ssv445
ssv445 / resume.json
Created May 2, 2023 12:19
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Shyam Sunder Verma",
"label": "Lead & Manager, Full Stack Team",
"image": "",
"email": "er.ssverma@gmail.com",
"phone": "9982231113",
"url": "",
"summary": "Shyam is passionate​ to​ problem solving, he eagerly learn​s and adapt to​ solve​ problems. \nHe leads his team by example and firmly believes in empathy & innovation driven teams.\nHe​ represented Ready Bytes in the​ delegation​ of​ NASSCOM’s​ first​ India-US​ Startup​ Konnect​. (2015)\n\nShyam founded Ready Bytes in 2009. In last 12 years it have built more than 10+ web/mobile products. \n● PayPlans: Worlds #1 Joomla Payment Component (2009-2017, Sold)\n● Products Review​ Analysis & Recommendation Engine​ ReadyViews​ (2015-2018 Shutdown)\n● Exchange​ Rate​ analysis​ platform​ ExchangeRateIQ​ (2016-2018, Sold)\n● 15+​ mobile​ apps​ in​ last​ years (2015-Present)\n\nReady Bytes have worked for clients as well