Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
New Dev Machine Script
# to execute:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/raelyard/6783972a17ba1bc14e83/raw/ -DisableReboots
# Windows Explorer has undesirable defaults - fix for this installation:
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -EnableShowFrequentFoldersInQuickAccess
# Windows Subsystem For Linux
choco install -y Microsoft-Windows-Subsystem-Linux -source WindowsFeatures
# Hyper-V, .NET, IIS and friends
choco install -y Microsoft-Hyper-V-All -source WindowsFeatures
choco install -y Containers -source WindowsFeatures
choco install -y dotnetfx
choco install -y dotnetcore-sdk
choco install -y IIS-WebServerRole -source WindowsFeatures
choco install -y IIS-WebServer -source WindowsFeatures
choco install -y IIS-Security -source WindowsFeatures
choco install -y IIS-BasicAuthentication -source WindowsFeatures
choco install -y IIS-DefaultDocument -source WindowsFeatures
choco install -y IIS-DigestAuthentication -source WindowsFeatures
choco install -y IIS-DirectoryBrowsing -source WindowsFeatures
choco install -y IIS-HttpErrors -source WindowsFeatures
choco install -y IIS-HttpLogging -source WindowsFeatures
choco install -y IIS-HttpRedirect -source WindowsFeatures
choco install -y IIS-ManagementConsole -source WindowsFeatures
choco install -y IIS-IPSecurity -source WindowsFeatures
choco install -y IIS-ISAPIExtensions -source WindowsFeatures
choco install -y IIS-ISAPIFilter -source WindowsFeatures
choco install -y IIS-LoggingLibraries -source WindowsFeatures
choco install -y IIS-CustomLogging -source WindowsFeatures
choco install -y IIS-IIS6ManagementCompatibility -source WindowsFeatures
choco install -y IIS-Metabase -source WindowsFeatures
choco install -y IIS-NetFxExtensibility -source WindowsFeatures
choco install -y IIS-RequestFiltering -source WindowsFeatures
choco install -y IIS-RequestMonitor -source WindowsFeatures
choco install -y IIS-StaticContent -source WindowsFeatures
choco install -y IIS-HttpCompressionStatic -source WindowsFeatures
choco install -y IIS-HttpCompressionDynamic -source WindowsFeatures
choco install -y IIS-HttpTracing -source WindowsFeatures
choco install -y IIS-WindowsAuthentication -source WindowsFeatures
choco install -y IIS-WebSockets -source WindowsFeatures
choco install -y urlrewrite
# now start the software packages
choco install -y tortoisehg
choco install -y googlechrome
choco install -y googlechrome.canary
choco install -y 7Zip
choco install -y adobereader
choco install -y atom
choco install -y audacity
choco install -y audacity-lame
choco install -y audacity-ffmpeg
choco install -y awscli
choco install -y awstools.powershell
choco install -y azure-cli
choco install -y az.powershell
choco install -y AzureStorageExplorer
choco install -y clipx
choco install -y ConEmu
choco install -y cmder -pre
choco install -y curl
choco install -y docker-desktop
choco install -y dropbox
choco install -y elixir
choco install -y evernote
choco install -y fiddler
choco install -y firefox
choco install -y jetbrains-rider
choco install -y lastpass
choco install -y git
choco install -y githubforwindows
choco install -y vim
choco install -y kickassvim
choco install -y kindle
choco install -y lockhunter
choco install -y ngrok.portable
choco install -y nodejs
choco install -y notepadplusplus
choco install -y nuget.commandline
choco install -y papercut
choco install -y python
choco install -y python2
choco install -y poshgit
choco install -y Posh-HG
choco install -y pscx
choco install -y Roundhouse
choco install -y sendtokindle
choco install -y Slack
choco install -y skype
choco install -y sysinternals
choco install -y vagrant
choco install -y visualstudiocode
choco install -y WebStorm
choco install -y windbg
choco install -y windirstat
choco install -y WindowsAzurePowershell
choco install -y winmerge
# Visual Studio and friends
choco install -y visualstudio2019professional --package-parameters "--allWorkloads --includeRecommended --includeOptional --passive --locale en-US"
choco install -y resharper
choco install -y sql-server-management-studio
choco install -y ruby
# by using refreshenv, installing devkit will (probably) see the ruby installation and not require further manual steps
refreshev
choco install -y ruby2.devkit
# set up a local Nuget package source
new-item C:\packages -type directory
nuget source add -Name Local -source C:\packages
# configure git identity and defaults (want to prune on fetch, etc.)
git config --global user.name "Dave Rael"
git config --global user.email "dave@raelyard.com"
git config --global fetch.prune true
git config --global push.default upstream
# make WinMerge my git difftool tool of choice
git config --global diff.tool "winmerge"
git config --global difftool.prompt "false"
git config --global difftool.winmerge.cmd 'winmergeu.exe -e -u -x -wl -dl base \"$LOCAL\" \"$REMOTE\"'
# but also set config to switch to other difftool/mergetool options to switch when desired
git config --global difftool.vsdiffmerge.cmd '\"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t'
git config --global mergetool.vsdiffmerge.cmd '\"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsdiffmerge.exe\" \"$REMOTE\" \"$LOCAL\" \"$BASE\" \"$MERGED\" //m'
# useful git log alias
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr - %cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date local"
# Jekll and dependencies (depends on having a sound Ruby installation)
gem install bundler
gem install jekyll
gem install wdm
# grab my standard configuration
new-item C:\Code -type directory
set-location C:\Code
hg clone https://bitbucket.org/raelyard/setup
set-location Setup\PowerShell
.\SetPowerShellProfile.ps1
Append=Path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin"
# Install dotnet new templates
dotnet new --install ParticularTemplates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.