mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

Snippets

All Tags

Post JSON data Using Curl

Make an HTTP POST request using Curl with JSON data.

Git Check Config Settings

Check the Git configuration settings and their origin and scope.

Git Initial Setup

Configure your Git installation for the firt time.

Move File in Node.js

Move a file using Node.js and handle non-existent directories and different mount points.

Remove Last Character from String in JavaScript

How to remove the last character or multiple characters from a string in JavaScript?