Skip to content

Instantly share code, notes, and snippets.

View mn-48's full-sized avatar

Md. Nazmul Hossain mn-48

View GitHub Profile

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

                        ┌────────────────────────────┐
@mn-48
mn-48 / 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 ConsoleCreate 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

to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,