Skip to content

Instantly share code, notes, and snippets.

View SHSharkar's full-sized avatar

Md. Sazzad Hossain Sharkar SHSharkar

View GitHub Profile
@SHSharkar
SHSharkar / netscope
Last active August 19, 2025 11:58
NetScope - Professional Network Quality Analysis Tool for macOS | Tests network performance using Apple's networkQuality with ISP-ready reports
#!/usr/bin/env bash
# =============================================================================
# NetScope - Network Quality Analysis Tool
# =============================================================================
# Description: Production-grade tool for generating comprehensive network
# quality reports for ISP debugging and troubleshooting
# Author: Md. Sazzad Hossain Sharkar
# Email: [email protected]
# Version: 1.2.0
@SHSharkar
SHSharkar / shades-of-purple-theme-for-windows-terminal.json
Created March 17, 2025 09:33
Shades of Purple Theme for Windows Terminal
{
"schemes": [
{
"name": "Shades of Purple",
"background": "#1E1E3F",
"foreground": "#A599E9",
"black": "#000000",
"red": "#FF628C",
"green": "#3AD900",
"yellow": "#FAD000",
@SHSharkar
SHSharkar / deprecating-npm-package-versions.md
Created November 16, 2023 18:59
Deprecating NPM Package Versions

Deprecating NPM Package Versions

This document provides a step-by-step guide on how to deprecate specific versions of an npm package. The process involves using the npm deprecate command.

Prerequisites

  • Ensure you have npm installed and are logged in to an account with permission to publish and manage the package.
  • You should have Node.js and npm installed on your system.

Deprecation Process

@SHSharkar
SHSharkar / Enhanced-Guide-to-Using-PDF-Shortcode-Functionality.md
Created April 21, 2023 00:38
Enhanced Guide to Using PDF Shortcode Functionality

Enhanced Guide to Using PDF Shortcode Functionality

  1. Log in to the admin dashboard and navigate to the following URL: https://oddsseeker.com/secure/portal/pdf-shortcodes?sorts[updated_at]=desc. Alternatively, you can access the page by clicking on the "PDF Shortcodes" link located in the top navigation bar.

  2. On the "PDF Shortcodes" page, locate the file input section above the table. It consists of three elements: Title, File Input (Choose File), and Submit Button (Upload PDF).

  3. You have the option to add a title for the uploaded file. This title is only visible to backend users. If you prefer not to provide a title, simply upload the PDF file. The system will automatically extract the file's name and use it as the title.

  4. Before uploading your PDF file, ensure that it has a descriptive and meaningful name, as this name will be used for the uploaded file.

@SHSharkar
SHSharkar / Setting-Meld-as-default-GIT-diff-tool-in-Windows-Operating-System.md
Last active February 28, 2022 05:58
Setting Meld as default GIT diff tool in Windows Operating System

Update .gitconfig file located in C:\Users\USERNAME directory with the following data.

[diff]
	tool = meld
[difftool]
	prompt = false
[difftool "meld"]
	path = C:\\Program Files (x86)\\Meld\\Meld.exe
	cmd = 'C:\\Program Files (x86)\\Meld\\Meld.exe' "$REMOTE" "$LOCAL"
@SHSharkar
SHSharkar / install-latest-git-on-ubuntu-20-04.md
Created February 25, 2022 08:42
Install Latest Git on Ubuntu 20.04

Add git-core PPA repository

yes | sudo add-apt-repository ppa:git-core/ppa

Update APT database

sudo apt update
@SHSharkar
SHSharkar / install-docker-engine-and-docker-compose-on-ubuntu.md
Created February 25, 2022 08:40
Install Docker Engine & Docker Compose on Ubuntu

Prerequisites

To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:

  • Ubuntu Impish 21.10
  • Ubuntu Hirsute 21.04
  • Ubuntu Focal 20.04 (LTS)
  • Ubuntu Bionic 18.04 (LTS)

Install Docker Engine

@SHSharkar
SHSharkar / .wslconfig
Last active January 22, 2022 07:16
Advanced settings configuration in WSL2
# C:\Users\<UserName>\.wslconfig
[wsl2]
memory=8GB
processors=4
swap=8GB
debugConsole=true
@SHSharkar
SHSharkar / MikroTik-Router-set-DHCP-Servers-DNS-Server-from-Terminal.md
Created November 30, 2021 18:05
MikroTik Router set DHCP Servers DNS Server from Terminal

MikroTik Router set DHCP Servers DNS Server from Terminal

/ip dhcp-server network set 0 dns-server=1.1.1.1,1.0.0.1

Demonstration with Cloudflare's 1.1.1.1 DNS.

Please note, set 0 means applying the DNS Server change for interface 1. If you have multiple DHCP Server interface, you will have to mention the number of the interface. Normally starts with 0.

@SHSharkar
SHSharkar / DNS-over-HTTPS-DoH-MikroTik.md
Created November 30, 2021 17:56
DNS over HTTPS (DoH) - MikroTik

Setup DNS over HTTPS (DoH) - MikroTik Router

Login to MikroTik Router, Open the Terminal, and execute the following commands.

For demonstration, Cloudflare's 1.1.1.1 was used. It can change to any other DNS provider that supports DoH.

/ip dns set servers=1.1.1.1,1.0.0.1