Skip to content

Instantly share code, notes, and snippets.

@ritwickdey
ritwickdey / heat.py
Last active May 2, 2026 14:55
In case if laptop is not charging due to cold temperature
import multiprocessing
import os
def infinite_loop():
pid = os.getpid()
x = 0
print("This infinite loop runs on a separate process. pid:", pid)
while True:
x += 1
@ritwickdey
ritwickdey / README.md
Last active April 24, 2025 13:07
Mail Merge using gmail and google spreedsheet (PS: Most of the code is generated)
  1. It reads email template from gmail's draft, and reads email list from speadsheet.
  2. Write back to speedsheet after email sent (success or failed) and it's time
  3. support template variables.
  4. Smilar to google's mail merge app script but that doesn't work for more that 100 emails
  5. email, sent status & sent at are the required field in the spreedsheet, rest are the variables.

PS: Inline attachments are showing as normal attachments. (Bug)

@ritwickdey
ritwickdey / ADB Instructions.md
Created April 10, 2026 07:36 — forked from ifiokjr/ADB Instructions.md
Android Platform Tools