Skip to content

Instantly share code, notes, and snippets.

View iam-nazmul's full-sized avatar

Md. Nazmul Hossain iam-nazmul

View GitHub Profile

TODAY OPS — Entity relationship diagrams

Written for developers and agents working on today_ops. Generated from the DocType JSON in today_ops/today_ops/doctype/ (52 DocTypes, all named TODAY …). After a schema change, regenerate it with python3 scripts/gen_erd.py . from apps/today_ops; do not edit the diagrams by hand.

How to read the diagrams

  • Entity names drop the TODAY prefix and spaces: TaskOccurrence is TODAY Task Occurrence.
  • A ||--o{ B : "field" — B.field is a required Link to A. A |o--o{ B — the Link is optional.
  • "field (rows)" — a child table: the parent owns zero or more rows.
  • name PK shows the naming rule. FK attributes are Link fields; the quoted text is the target DocType. UK is a unique field.
@iam-nazmul
iam-nazmul / Ritmise-Technical-Audit-2026-09-13.md
Last active September 13, 2026 07:01
Ritmise-Technical-Audit-2026-09-13

Ritmise Technical Audit — ritmise.glascutr.com

Auditor: Md. Nazmul Hossain Date: 13 September 2026 Requested by: Arindam (daily work email) Co-auditor: Momin (audit against current TODAY R-001 idea) System audited: https://ritmise.glascutr.com — the live production instance, tenant Aroma Espresso — Bay and Charles. Frappe 16.29.0 / ERPNext 16.30.0 / ritmise 0.0.1. Timezone America/Toronto. Installed apps: frappe, erpnext, ritmise. Method: Read-only snapshot of the live production site over the authenticated REST API on 13 Sep 2026 — row counts, full document dumps, settings, users, roles, scheduled jobs, email queue and version history — assessed against the v1 Scope Document (v1.1) and Developer Brief v1.7, supported by inspection of the ritmise app source. GTM, website and proof sections additionally re-read the Glascutr control-layer page live on 13 Sep against the existing 27 Aug review documents. Scope note: This is an audit of what exists in production.

My Technical Expertise

ERPNext / Frappe

Area Level Notes / Examples
Core usage (Sales, Purchase, Stock, Accounting) 5
DocType customization (custom fields, custom DocTypes) 5
Server scripts / client scripts 5

Absolutely, Nazmul. Based on your mind map and your expertise in ERPNext/Frappe and open-source architecture, here’s a multi-tenant microservice architecture diagram tailored for your mobile app concept. This design ensures tenant isolation, scalability, and modularity across user/client domains.


🏗️ Multi-Tenant Microservice Architecture for Mobile App

1. High-Level Overview

                        ┌────────────────────────────┐
@iam-nazmul
iam-nazmul / setup_cursor_ubuntu.md
Created September 15, 2025 03:15 — forked from evgenyneu/setup_cursor_ubuntu.md
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage

Installing Oracle Database directly on Ubuntu 22.04 is a bit tricky because Oracle officially supports only Oracle Linux, RHEL, CentOS, and SUSE — not Ubuntu. However, you can still install it on Ubuntu using either:

  • Oracle Database XE (Express Edition) via RPM conversion (alien)
  • Docker container (simpler and cleaner)
  • Oracle VirtualBox VM with Oracle Linux (officially supported way)

I’ll show you the Docker method (recommended for dev) and the RPM conversion method (native install).


To back up ERPNext data to an AWS S3 bucket, you can follow these steps:


Step 1: Configure AWS S3 Bucket

  1. Create an S3 Bucket
    • Go to AWS S3 Console → Create Bucket
    • Choose a unique name (e.g., erpnext-backups-[your-name])
    • Select Region (preferably close to your ERPNext server)
  • Enable Versioning (to keep multiple backup versions)
```
```
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# SMTP Configuration
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'nazmul.cse.pust@gmail.com'

Server_load_test1.py

import requests
import time

# API URL
url = "http://103.164.92.62:8000/graphql/"

# GraphQL mutation for authentication
mutation = """

1 Clone repo https://github.com/GlascutrDev/FlexFactoryManager.git

2: cd repo

3: sudo mkdir -p sites && sudo mkdir -p logs

~ To create directory sites & logs

4: sudo chmod -R 777 .

~ To give permission on those directory

5: bench setup config

~ Generates required config files for bench project

6: bench setup env

~ Generates env