Skip to content

Instantly share code, notes, and snippets.

View micky2be's full-sized avatar

Micky Brunetti micky2be

View GitHub Profile

Update-Node-Version

Disclaimer

This script was written for my own use but can be freely be used by others. While bugs reports are welcome, this was not meant to be heavily shared and maintain for wide audiance.

What it is

A PowerShell script using nvm-windows to update node version based on .nvmrc file available. Like nvm-sh, it will traverse directory structure upwards from the current directory looking for the .nvmrc file, then edfault to the one in your profile directory if any.

@micky2be
micky2be / general.md
Last active September 25, 2017 02:39
Global gitignore

gitignore

Everybody is using a different IDE or system.
We will not add all those different files to every projects we have in our company.
The best way to deal with this is for everyone to be responsible of there noisy file by adding a global .gitignore file.

To do so it's fairly simple, just create a file under ~/.gitignore and then put all you noisy files in there, or simply download an existing file you may have found on internet (like this one).
Then simply run the following command to add the file to your global config.

@micky2be
micky2be / .eslintrc.yml
Created September 4, 2017 01:16
Project standard config
parser: babel-eslint
extends: airbnb
env:
browser : true
rules:
comma-dangle: [2, never]
max-len:
- 2
- 120
- 2
@micky2be
micky2be / Makefile
Last active September 2, 2017 07:45
Makefile for Cordova publish
SCRIPTS = ./scripts
RESOURCES = ./resources
BIN = ${shell npm bin}
JSDOC = $(BIN)/jsdoc
null :=
SPACE := $(null) $(null)
# Configuration: Git releases