-
-
Save danrigsby/9025749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/danrigsby/9025749/raw/a915773f5812c02aa45185e486ec543e01cf9ed0/dev_setup.ps1'))" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################### | |
# Install apps using Chocolatey | |
###################################################### | |
Write-Host "Installing Chocolatey" | |
iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall')) | |
Write-Host | |
Write-Host "Installing general apps" | |
cinst notepadplusplus | |
cinst googlechrome | |
cinst foxitreader | |
cinst winrar | |
cinst googledrive | |
cinst evernote | |
cinst vlc | |
cinst skype | |
cinst paint.net | |
cinst flashplayerplugin | |
cinst javaruntime | |
cinst calibre | |
cinst Silverlight | |
cinst nodejs.install | |
cinst python | |
cinst ruby | |
cinst atom | |
cinst mingw | |
cinst vim | |
Write-Host | |
do { | |
$createDevEniron = Read-Host "Do you want to install a dev environmnet? (Y/N)" | |
} while ($createDevEniron -ne "Y" -and $createDevEniron -ne "N") | |
if ($createDevEniron -eq "Y") { | |
cinst linqpad | |
cinst fiddler | |
cinst grepwin | |
cinst procexp | |
cinst sysinternals | |
cinst rdcman | |
cinst git | |
cinst webpi | |
cinst fiddler4 | |
cinst NugetPackageExplorer | |
cinst mongodb | |
cinst postgresql | |
cinst virtualbox | |
cinst postgresql | |
cinst vagrant | |
cinst putty | |
cinst filezilla | |
cinst expresso | |
cinst intellijidea-community | |
} | |
Write-Host | |
###################################################### | |
# Set environment variables | |
###################################################### | |
Write-Host "Setting home variable" | |
[Environment]::SetEnvironmentVariable("HOME", $HOME, "User") | |
[Environment]::SetEnvironmentVariable("CHROME_BIN", "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "User") | |
[Environment]::SetEnvironmentVariable("PHANTOMJS_BIN", "C:\tools\PhanomJS\phantomjs.exe", "User") | |
Write-Host | |
###################################################### | |
# Install Windows installer through WebPI | |
###################################################### | |
Write-Host "Installing apps from WebPI" | |
cinst WindowsInstaller31 -source webpi | |
cinst WindowsInstaller45 -source webpi | |
Write-Host | |
###################################################### | |
# Install SQL Express 2012 | |
###################################################### | |
Write-Host | |
do { | |
$createSiteData = Read-Host "Do you want to install SQLExpress? (Y/N)" | |
} while ($createSiteData -ne "Y" -and $createSiteData -ne "N") | |
if ($createSiteData -eq "Y") { | |
cinst SqlServer2012Express | |
} | |
Write-Host | |
###################################################### | |
# Add Git to the path | |
###################################################### | |
Write-Host "Adding Git\bin to the path" | |
Add-Path "C:\Program Files (x86)\Git\bin" | |
Write-Host | |
###################################################### | |
# Configure Git globals | |
###################################################### | |
Write-Host "Configuring Git globals" | |
$userName = Read-Host 'Enter your name for git configuration' | |
$userEmail = Read-Host 'Enter your email for git configuration' | |
& 'C:\Program Files (x86)\Git\bin\git' config --global user.email $userEmail | |
& 'C:\Program Files (x86)\Git\bin\git' config --global user.name $userName | |
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") | |
###################################################### | |
# Update RubyGems and install some gems | |
###################################################### | |
Write-Host "Update RubyGems" | |
C:\Chocolatey\bin\cinst ruby.devkit.ruby193 | |
gem update --system | |
gem install bundler compass | |
Write-Host | |
###################################################### | |
# Install npm packages | |
###################################################### | |
Write-Host "Install NPM packages" | |
npm install -g yo grunt-cli karma bower jshint coffee-script nodemon generator-webapp generator-angular | |
Write-Host | |
###################################################### | |
# Generate public/private rsa key pair | |
###################################################### | |
Write-Host "Generating public/private rsa key pair" | |
Set-Location $home | |
$dirssh = "$home\.ssh" | |
mkdir $dirssh | |
$filersa = $dirssh + "\id_rsa" | |
ssh-keygen -t rsa -f $filersa -q -C $userEmail | |
Write-Host | |
###################################################### | |
# Add MongoDB to the path | |
###################################################### | |
# Write-Host "Adding MongoDB to the path" | |
# Add-Path "C:\MongoDB\bin" | |
# Write-Host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment