Skip to content

Instantly share code, notes, and snippets.

View montasim's full-sized avatar
💭
𝗟𝗢𝗢𝗞𝗜𝗡𝗚 𝗙𝗢𝗥 𝗡𝗘𝗪 𝗢𝗣𝗣𝗢𝗥𝗧𝗨𝗡𝗜𝗧𝗜𝗘𝗦.

M♢NTΛSIM montasim

💭
𝗟𝗢𝗢𝗞𝗜𝗡𝗚 𝗙𝗢𝗥 𝗡𝗘𝗪 𝗢𝗣𝗣𝗢𝗥𝗧𝗨𝗡𝗜𝗧𝗜𝗘𝗦.
View GitHub Profile
@montasim
montasim / puppeteer-auto-reloader.js
Created June 26, 2024 06:53
This script automatically refreshes a given webpage at specified intervals using Puppeteer. It is designed to monitor changes on a webpage over time. This version includes better error handling and resource management to ensure the script runs efficiently.
/**
* @file This script automatically refreshes a given webpage at specified intervals using Puppeteer.
* It is designed to monitor changes on a webpage over time. This version includes better error handling
* and resource management to ensure the script runs efficiently.
*/
const puppeteer = require('puppeteer');
let browser;
const refreshUrl = 'https://profile-counter.glitch.me/montasim/count.svg';
@montasim
montasim / repository summary badges.md
Created June 26, 2024 04:50
Commonly used badges for a repository.
GitHub forks GitHub Repo stars GitHub watchers build update badge language badge top language badge GitHub code size in bytes
@montasim
montasim / build.js
Created June 25, 2024 18:48
Script to minify JavaScript files and copy other file types while tracking file sizes.
/**
* This script processes JavaScript files by minifying them using Terser and copies other types of files.
* It reads configurations from a build.json, respects ignore patterns, and logs the process summary.
*
* @fileoverview Script to minify JavaScript files and copy other file types while tracking file sizes.
*/
const fs = require('fs');
const path = require('path');
const { sync: globSync } = require('glob');
@montasim
montasim / SECURITY.md
Created June 25, 2024 14:10
Security template for GitHub project.

Security Policy

Reporting a Vulnerability

If you discover a security vulnerability in service, please do the following:

  • Do not create a public issue or pull request, as this could expose the vulnerability to malicious actors.

  • Instead, please email me at montasimmamun@gmail.com with details of the vulnerability and steps to reproduce it. Please include the following information in your report:

  • A description of the vulnerability and how it can be exploited

@montasim
montasim / vercel.json
Created June 24, 2024 17:12
Sample JSON for deploying a project to Vercel.
{
"version": 2,
"builds": [
{
"src": "./src/server.js",
"use": "@vercel/node"
}
],
"routes": [
{
@montasim
montasim / statusCodes.constants.js
Created June 24, 2024 17:08
Defines common HTTP status codes for use in API responses. These status codes represent various states of HTTP responses and are commonly used to communicate the result of API requests. Adjust these codes as needed to align with the APIs response requirements.
/**
* @fileoverview Defines common HTTP status codes for use in API responses.
* These status codes represent various states of HTTP responses and are
* commonly used to communicate the result of API requests.
* Adjust these codes as needed to align with the APIs response requirements.
*
* @author Mohammad Montasim -Al- Mamun Shuvo
* @date 2024-03-03
*/
@montasim
montasim / mimeTypes.constants.js
Last active June 24, 2024 17:10
Defines common MIME types for use in API responses. These MIME types represent various types of content that can be served by the API. Adjust these MIME types as needed to align with the APIs content requirements.
/**
* @fileoverview Defines common MIME types for use in API responses.
* These MIME types represent various types of content that can be served by the API.
* Adjust these MIME types as needed to align with the APIs content requirements.
*
* @author Mohammad Montasim -Al- Mamun Shuvo
* @date 2024-03-03
*/
/**
@montasim
montasim / fileExtensions.constants.js
Last active June 24, 2024 17:10
Defines common file extension types for use in API responses. These file extension types represent various types of files that can be served by the API. Adjust these file extension types as needed to align with the APIs content requirements.
/**
* @fileoverview Defines common file extension types for use in API responses.
* These file extension types represent various types of files that can be served by the API.
* Adjust these file extension types as needed to align with the APIs content requirements.
*
* @author Mohammad Montasim -Al- Mamun Shuvo
* @date 2024-03-03
*/
/**

Project Name

Project Sample Gif


Requirements to Run the Project

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default