Skip to content

Instantly share code, notes, and snippets.

View rohithzr's full-sized avatar
🏠
Working from home

Rohit Hazra rohithzr

🏠
Working from home
View GitHub Profile
#### Objective:
Extend the existing functionality of the CRUD operations and regex-based search by integrating MongoDB to log search queries and user interactions, while PostgreSQL handles the main CRUD operations on item data.
#### Requirements:
1. **Backend (NodeJS + Express):**
- Use PostgreSQL to handle CRUD operations on the items.
- Integrate MongoDB to log each search query along with metadata like the timestamp and user ID (if authentication is implemented).
- Enhance the search functionality in the Express server to interact with both databases appropriately.
#### Requirements:
1. **Backend (NodeJS + Express):**
- Use PostgreSQL to manage CRUD operations on items.
- Integrate MongoDB to log each search query with metadata like the timestamp and user ID (if authentication is implemented).
- Enhance the search functionality to interact with both databases appropriately.
2. **Database Setup:**
- **PostgreSQL:** Continue using PostgreSQL for managing the `items` table with CRUD operations.
- **MongoDB:** Set up a collection to store search logs, including the search term, date/time, and optionally the user ID.
{%- for message in messages %}
{%- if message['role'] == 'system' -%}
{{- message['content'] -}}
{%- else -%}
{%- if message['role'] == 'user' -%}
{{-'[INST] ' + message['content'].rstrip() + ' [/INST]'-}}
{%- else -%}
{{-'' + message['content'] + '</s>' -}}
{%- endif -%}
{%- endif -%}
Month Savings
January $250
February $80
March $420
April $420
May $420
June $420
@rohithzr
rohithzr / all_email_provider_domains.txt
Created August 11, 2025 22:34 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org