Skip to content

Instantly share code, notes, and snippets.

View johnny-vikrant's full-sized avatar
💭
I may be slow to respond.

Vikrant Negi johnny-vikrant

💭
I may be slow to respond.
View GitHub Profile
anonymous
anonymous / index.html
Created October 24, 2016 12:15
Google map
<html>
<head>
</head>
<body>
<h1>Map example</h1>
<div style="height: 500px;width: 100%" id="map-canvas"></div>
@ankurk91
ankurk91 / npm-commands.md
Last active October 22, 2023 12:16
Useful npm commands and tricks

npm v3.10 - ◾

⚠️ This gist is outdated, but most of the commands are still relevant. ⚠️

Update npm itself

npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
@ankurk91
ankurk91 / git_remember_password.md
Last active March 24, 2025 03:03
Git credential cache, why type password again and again

Tired of entering passwords again and again ?

Run this command to remember your password:

git config --global credential.helper 'cache --timeout 28800'

Above command will tell git to cache your password for 8 hours.

@ankurk91
ankurk91 / install-node-js.sh
Last active February 11, 2026 04:43
Install node-js, npm and yarn on Ubuntu/Mac using nvm
#!/bin/sh
# Install node and npm via nvm - https://github.com/nvm-sh/nvm
# Run this script like - bash script-name.sh
# Define versions
INSTALL_NODE_VER=24
INSTALL_NVM_VER=0.40.4