Skip to content

Instantly share code, notes, and snippets.

@metamutator
metamutator / VB-NANOCLAW-MEMORY-OBSI-WIKI-PUBLIC.md
Created April 27, 2026 06:45 — forked from VivianBalakrishnan/VB-NANOCLAW-MEMORY-OBSI-WIKI-PUBLIC.md
NanoClaw — Personal Claude Assistant (second brain for a diplomat)

NanoClaw — Personal Claude Assistant

A self-hosted, compounding-memory AI assistant running on a Raspberry Pi.


What Is This?

NanoClaw is a personal AI assistant built on Anthropic's Claude that runs entirely on a Raspberry Pi. It connects to messaging channels (WhatsApp, Telegram, Slack, Discord), processes voice and images, schedules recurring tasks, and — unlike a standard chatbot — accumulates knowledge over time through a structured memory system.


@metamutator
metamutator / pdf_converter.py
Created September 20, 2024 13:07
Python methods to cycle through a folder and convert ppt files to PDF via Apple Script (works only for Mac)
import os
import subprocess
from pathlib import Path
def export_ppt_to_pdf(input_file, output_file):
# AppleScript to open PowerPoint file and export as PDF
script = f'''
tell application "Microsoft PowerPoint"
set input_file to "{input_file}" as POSIX file
set output_file to "{output_file}" as POSIX file
@metamutator
metamutator / Saving Keys
Last active July 30, 2023 06:12
Setting license keys (e.g. OpenAI's) per conda environment
# When you call API-based services such as OpenAI's API, you want to save the keys as an environment variable. One convenient, and safe, way of doing this is to set the license keys as environment variables per conda environment. So when you activate an environment, you automatically load the license keys to that environment. The respective libraries will automaticaly read the license keys; you wouldn't need to read/write anything in code. This makes your code safe enough to check-in to GitHub or any other repo.
# Here's how you do it. Switch to your conda environment first via CLI (e.g. Visual Studio Code's terminal window) by hitting this:
conda activate {YOUR_ENVIRONMENT}
# Then hit the following to see where your libraries are saved:
echo $CONDA_PREFIX
# Switch to that folder:
Interval Number of times occuring
19 11
46 3
65 1
76 1
122 1
141 6
@metamutator
metamutator / Eras.csv
Created July 15, 2021 04:12
Table in Panchanga Tantra
Era Zero Year Beginning of Era with respect to individual year
Saka 78 CE Mesha Sankranti, Chaitra S 1
Vikrama 57 CE Mesha Sankranti, Chaitra S 1, Karthika S 1, Ashadha S 1
Kali 3101 BCE Mesha Sankranti, Chaitra S 1
Kollam 824 CE Kanya Sankranti, Simha Sankranti
Bengali San 963 + solar years since 1556 CE Mesha Sankranti
Festival Indic Date Additional Rules Calendar Used
Makara Sankranti/ Pongal Makara Sankranti None Solar
Maha Siva Raatri Magha K 14 Must cover a nisita Lunisolar
Holi Phalguna Purnima Holika Dahana is observed on the night of the Purnima; Holi is observed on the solar day after Holika Dahana. Lunisolar
Ugadi / Gudi Padwa Chaitra S 1 None Lunisolar
Rama Navami Chaitra S 9 Must cover Madyahna
Tamil New Year, Vishu, Bengali New Year Mesha Sankranti Respective Sankranti rules Solar
Ganesh Chaturti Bhadrapada S 4 Must cover Madyahna Lunisolar
Buddha Purnima Vaisakhi Purnima Lunisolar
Raksha Bandan Sravana Purnima Lunisolar
Raasi Sanskritised Version Malayalam Version
Mesha Mesha Medam
Vrshava Vrshava Edavam
Mithuna Mithuna Midhunam
Karkata Karkata Karitaka
Simha Simha Chingam
Kanya Kanya Kanni
Tula Tula Thulam
Vrischika Vrischika Vrischikam
Dhanus Dhanus Dhanu
Raasi Approximate Nakshatra on Purnima Lunar Month Name Solar Month Name Assamese Version Tamil Version Punjabi Version
Mesha Chitra Chaitra Vaisakha Bahag Chittarai Vaisakh
Vrshava Visakha Vaisakha Jyaishta Jeth Vaikasi Jeth
Mithuna Jyestha Jaishta Aashaadha Ahar Aani Harh
Karkata (Purva & Uttara) Ashaadha Aashaadha Sraavana Saon Aadi Sawan
Simha Sravana Sraavana Bhaadrapada Bhad Aavani Bhadon
Kanya (Purva & Uttara) Bhaadrapada Bhaadrapada Asvayuja (Aasvina) Ahin Purattaasi Asu
Tula Asvini Asvayuja (Aasvina) Kaarthika Kati Arppisi Katik
Vrischika Krittika Kaarthika Maarghasira Aghon Karthigai Maghar
Dhanus Mrugasira Maarghasira Pushyam (Pausa) Puha Maargali Poh
@metamutator
metamutator / Nakshatras.csv
Created July 15, 2021 03:04
List of Nakshatras
Nakshatra on Purnima Month Name
Chitra Chaitra
Visakha Vaisakha
Jyestha Jyaistha
(Purva & Uttara) Aashaadha Aashaadha
Sravana Sraavana
(Uttara & Purva) Bhaadrapada Bhaadrapada
Asvini Asvayuja (Aasvina)
Krittika Kaarthika
Mrugasira Maarghasira
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 5 columns, instead of 2 in line 9.
State,Calendar,Era,New Year,Further Local Variation
Andhra Pradesh,Southern Amaanta,"Salivahana Saka, Jovian cycle (Southern School)",One day after the last new moon before Mesha Sankranti,Possible Jugma month for kshaya
Assam,Solar,"Kali, Bengali San",Solar Day after Mesha Sankranti,Bengali rules for beginning of month
Bihar,Purnimaanta,Vikrama Era (Chaitradi),One day after the last full moon before Mesha Sankranti,
Chattisgarh,Purnimaanta,Vikrama Era (Chaitradi),One day after the last full moon before Mesha Sankranti,
Delhi,Purnimaanta,Vikrama Era (Chaitradi),One day after the last full moon before Mesha Sankranti,
Goa,Southern Amaanta,"Salivahana Saka, Jovian cycle (Southern School)",One day after the last new moon before Mesha Sankranti,Possible Jugma month for kshaya
Gujarat,Western Amaanta,Vikrama Karthikaadi,One day after Deepavali,North-western school for kshaya possible
Himachal Pradesh,Purnimaanta,Vikrama Era (Chaitradi),One day after the last full moon before Mesha Sankranti,
Jammu and Kashmir,Purn