Skip to content

Instantly share code, notes, and snippets.

View nwease's full-sized avatar

Nicholas Ayleet Wease nwease

  • Developer Nick
  • s-Hertogenbosch, the Netherlands
View GitHub Profile
@nwease
nwease / 0_reuse_code.js
Created March 25, 2017 16:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nwease
nwease / Download and Install MongoDB as Windows Service PowerShell Script
Created September 13, 2016 19:28 — forked from serdarb/Download and Install MongoDB as Windows Service PowerShell Script
A nice powershell that dowloads mongodb and installs it as windows service... this script is good for development machines.
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9"
if ((Test-Path -path $mongoDbPath) -eq $True)
{