mdawar.dev

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

Snippets

All Tags

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?

Copy to Clipboard in the Browser

A JavaScript helper function to copy to the clipboard with a fallback for older browsers.