Skip to content

Instantly share code, notes, and snippets.

View vorou's full-sized avatar

Viktor Voropaev vorou

View GitHub Profile
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
@vorou
vorou / install-mongodb-as-service.ps1
Last active August 29, 2015 14:06 — forked from serdarb/Download and Install MongoDB as Windows Service PowerShell Script
Download and Install MongoDB as Windows Service PowerShell Script
# to download and run
# open PowerShell console and execute
# iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/vorou/01079294ca8c43f6832d/raw/7e66972a3abf62e1c01d44b3824bf95a03da9503/install-mongodb-as-service.ps1'))
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.3.zip"
$zipFile = "$mongoDbPath\mongo.zip"