Skip to content

Instantly share code, notes, and snippets.

View montasim's full-sized avatar
๐Ÿ’ญ
๐—Ÿ๐—ข๐—ข๐—ž๐—œ๐—ก๐—š ๐—™๐—ข๐—ฅ ๐—ก๐—˜๐—ช ๐—ข๐—ฃ๐—ฃ๐—ข๐—ฅ๐—ง๐—จ๐—ก๐—œ๐—ง๐—œ๐—˜๐—ฆ.

๏ผญโ™ข๏ผฎ๏ผดฮ›๏ผณ๏ผฉ๏ผญ montasim

๐Ÿ’ญ
๐—Ÿ๐—ข๐—ข๐—ž๐—œ๐—ก๐—š ๐—™๐—ข๐—ฅ ๐—ก๐—˜๐—ช ๐—ข๐—ฃ๐—ฃ๐—ข๐—ฅ๐—ง๐—จ๐—ก๐—œ๐—ง๐—œ๐—˜๐—ฆ.
View GitHub Profile
@montasim
montasim / userAgents.json
Created July 23, 2025 08:46
This JSON file include more than 1000 divers user agent for several devices (Desktop, Mobile, Tv, ...), and for several operating system (linux, Windows ,android, ...)
[
"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.3",
"Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-A326B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.3",
"Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-G780G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.3",
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.171 Mobile/15E148 Safari/604",
"Mozilla/5.0 (Linux; Android 11; moto e20 Build/RONS31.267-94-14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.178 Mobile Safari/537.3",
"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.3",
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.",
"Mozilla/5.0 (Linux; Android 12; SM-S906N Bu
@montasim
montasim / zodLanguageValidation.js
Created January 29, 2025 14:20
Language-wise Regular Expressions.
import { z } from "zod"; // Ensure Zod is imported
/**
* Regular expressions for various languages.
* Each language key maps to its corresponding Unicode regex pattern.
*/
const languageRegexPatterns = {
english: /^[A-Za-z\s]*$/, // English
bangla: /^[\u0980-\u09FF\s]*$/, // Bangla (Bengali)
hindi: /^[\u0900-\u097F\s]*$/, // Hindi (Devanagari)
@montasim
montasim / README.md
Created January 29, 2025 08:11
README.md template suitable for NPM.

mime-types-lite

NPM Version NPM Downloads NPM Package
@montasim
montasim / eslint.config.mjs
Created January 28, 2025 12:03
ESLint configuration for a JavaScript/TypeScript project.
/**
* @fileoverview ESLint configuration for a JavaScript/TypeScript project.
* This configuration enforces best practices, coding conventions, and ensures code consistency
* for general JavaScript and React-based projects.
*
* The configuration includes:
* - File matching patterns for JavaScript and TypeScript files
* - Language options for specifying globals and parsers
* - Plugins such as TypeScript ESLint for enhanced linting rules
* - Recommended rulesets for both JavaScript and TypeScript
/**
* @fileoverview Defines a list of known user agent strings.
* This list includes user agents for API testing tools, bots, crawlers, HTTP libraries, automation tools, and scrapers.
* It can be used to identify and filter traffic from these sources.
*
* @module vendor/userAgents
* @version 1.0.0
* @license CC BY-NC-ND 4.0
*
* @contact Mohammad Montasim-Al-Mamun Shuvo
@montasim
montasim / httpMethods.constants.js
Last active January 28, 2025 08:28
Defines the various HTTP methods used in the application.
/**
* @fileoverview Defines the various HTTP methods used in the application.
* This module exports an object that contains the different HTTP methods
* the application can handle. These methods are used to configure
* the application behavior based on the current HTTP method.
*
* @module constants/httpMethods
* @version 1.0.0
* @license CC BY-NC-ND 4.0
*
@montasim
montasim / contentTypes.constants.js
Last active January 28, 2025 08:28
Defines the various content types used in the application.
/**
* @fileoverview Defines the various content types used in the application.
* This module exports an object that contains the different content types
* the application can handle. These content types are used to configure
* the application behavior based on the current content type.
*
* @module constants/contentTypes
* @version 1.0.0
* @license CC BY-NC-ND 4.0
*
@montasim
montasim / enviornments.constants.js
Last active January 28, 2025 08:28
Defines the various environments used in the application.
/**
* @fileoverview Defines the various environments used in the application.
* This module exports an object that contains the different environments
* the application can run in. These environments are used to configure
* the application behavior based on the current environment.
*
* @module constants/environments
* @version 1.0.0
* @license CC BY-NC-ND 4.0
*
@montasim
montasim / .env.example
Created January 27, 2025 10:35
This file serves as a template for configuring environment variables essential for the development environment.
####################################################
# .env.production Configuration File
####################################################
# This file serves as a template for configuring environment variables essential for the development environment.
# Adjust these settings to align with your specific development needs and infrastructure requirements.
####################################################
# APPLICATION ENVIRONMENT
@montasim
montasim / eslint.config.mjs
Created December 26, 2024 12:20
This configuration includes rules and settings for general JavaScript and React projects. It aims to enforce best practices, coding conventions, and ensure code consistency.
import globals from 'globals';
import pluginJs from '@eslint/js';
import pluginReact from 'eslint-plugin-react';
/**
* ESLint configuration for a JavaScript/TypeScript project.
*
* This configuration includes rules and settings for general JavaScript and React projects.
* It aims to enforce best practices, coding conventions, and ensure code consistency.
*