Skip to content

Instantly share code, notes, and snippets.

View victorfeight's full-sized avatar

VF victorfeight

View GitHub Profile
@victorfeight
victorfeight / nvmCommands.js
Created July 30, 2023 22:19 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@victorfeight
victorfeight / closure.js
Created January 27, 2022 03:50
JS Closure example
let testClosure = function() {
let i = 1;
const f = function() {
console.log(i);
}
}
f();
@victorfeight
victorfeight / git_fetch.txt
Last active December 21, 2021 21:44 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master