Skip to content

Instantly share code, notes, and snippets.

View Kishlay-notabot's full-sized avatar
:fishsticks:
testing in prod

Kishlay Kisu Kishlay-notabot

:fishsticks:
testing in prod
  • 13:03 (UTC +05:30)
View GitHub Profile
@Kishlay-notabot
Kishlay-notabot / script.py
Created May 15, 2026 06:34
Merge WhatsApp 'Message Yourself' exports into one sorted, deduplicated txt file.
```
#!/usr/bin/env python3
"""
Merge WhatsApp 'Message Yourself' exports into one sorted, deduplicated .txt.
Usage:
python merge_whatsapp.py <folder> [output.txt]
- Reads every .txt in <folder>.
- Parses messages (multi-line messages preserved as one entry).
@Kishlay-notabot
Kishlay-notabot / start_macos.sh
Created May 15, 2026 06:32
oobabooga/textgen running script with updated deps.
#!/bin/bash
# environment isolation
export PYTHONNOUSERSITE=1
unset PYTHONPATH
unset PYTHONHOME
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
# Portable install case
@Kishlay-notabot
Kishlay-notabot / spotify-to-ytmusic.md
Last active March 21, 2026 10:30
Transfer spotify playlist to Youtube Music with an export csv.

transfer.py

Spotify CSV - YouTube Music playlist transfer. Uses browser auth, no Spotify API keys needed. Caches videoIDs, prevents duplicates.

Setup

pip install ytmusicapi
ytmusicapi browser --file browser.json   # paste YTM request headers
@Kishlay-notabot
Kishlay-notabot / IndicTrans2_setup.md
Last active November 5, 2024 14:54
Setup IndicTrans2 for local inference to translation of 22 Indian languages

IndicTrans2 Setup Guide

This guide provides instructions for setting up IndicTrans2 specifically for English to Indic language translation using the distilled model for faster inference.

About IndicTrans2

IndicTrans2 is a state-of-the-art open-source multilingual Neural Machine Translation (NMT) model supporting all 22 scheduled Indian languages.

Requirements

  • Python3 [3.10 used in this script, anything >= 3.7 is supported in IndicTrans2 ]