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 / 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
@SHSharkar
SHSharkar / Laragon-MySQL-v8-x-upgrade-fix.md
Created November 28, 2021 07:23
Laragon MySQL v8.x upgrade / fix

Laragon MySQL v8.x upgrade / fix

Solution for: https://laragon.org

If you are setting up MySQL v8.x for the first time for Laragon, you will see that MySQL failed to load and asking for an upgrade the MySQL. Although showing user table not found, plugins table not found errors, etc.

To fix the problem, follow the steps accordingly.

  1. Delete Laragon MySQL data directory. If you have already existed databases, make sure to export first. Location path example: C:\laragon\data where the folder contains mysql-8. Delete the mysql-8 folder. You can also delete the mysql folder if not needed.
  2. Access to the MySQL BIN folder or add the MySQL BIN folder to the windows system environment path. Location example: C:\laragon\bin\mysql\mysql-8.0.27-winx64\bin. Open a terminal or navigate the location from Laragon's built-in terminal.
@SHSharkar
SHSharkar / my.cnf
Last active December 17, 2023 00:09
MySQL 8 Configuration for Production Use
[mysql]
port = 3306
socket = /var/run/mysqld/mysqld.sock
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
[mysqld]
# Required Settings