Skip to content

Instantly share code, notes, and snippets.

View azhukau-dev's full-sized avatar
🤖

Aliaksandr Zhukau azhukau-dev

🤖
View GitHub Profile
@azhukau-dev
azhukau-dev / update-npm.ps1
Last active December 10, 2019 09:00
Update npm on windows with nvm
$starting_path = Get-Location
$node_version = node -v
$node_path = "$env:appdata\nvm\$node_version"
Write-Host "node_version: $node_version"
Write-Host "Path used: $node_path"
cd $node_path
Remove-Item npm
Remove-Item npm.cmd
Remove-Item npx
Remove-Item npx.cmd
# Install the version that you would like
nvm install 6.1.0
# Set 6.1.0 (or another version) as default
nvm alias default 6.1.0
@azhukau-dev
azhukau-dev / gist:7399b6a518dc836bbeeefe38424ab4cb
Created September 1, 2017 09:05 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@azhukau-dev
azhukau-dev / ngrxintro.md
Created July 25, 2017 08:49 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

set-executionpolicy remotesigned
@azhukau-dev
azhukau-dev / git.txt
Created July 10, 2017 11:23
Save git credentials
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>