Skip to content

Instantly share code, notes, and snippets.

@jjczopek
Last active January 20, 2021 00:33
Show Gist options
  • Save jjczopek/91803ffdc8eb994f1515aa001ee348a0 to your computer and use it in GitHub Desktop.
Save jjczopek/91803ffdc8eb994f1515aa001ee348a0 to your computer and use it in GitHub Desktop.
# VSC
code --install-extension Angular.ng-template
code --install-extension beaugunderson.solidity-extended
code --install-extension dbaeumer.vscode-eslint
code --install-extension DotJoshJohnson.xml
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension eg2.vscode-npm-script
code --install-extension eriklynd.json-tools
code --install-extension esbenp.prettier-vscode
code --install-extension foxundermoon.shell-format
code --install-extension HookyQR.minify
code --install-extension jchannon.csharpextensions
code --install-extension johnpapa.angular-essentials
code --install-extension johnpapa.Angular2
code --install-extension johnpapa.vscode-peacock
code --install-extension johnpapa.winteriscoming
code --install-extension ms-azure-devops.azure-pipelines
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-dotnettools.csharp
code --install-extension ms-dotnettools.vscode-dotnet-runtime
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-vscode.azure-account
code --install-extension ms-vscode.azurecli
code --install-extension ms-vscode.powershell
code --install-extension ms-vscode.vscode-node-azure-pack
code --install-extension msazurermtools.azurerm-vscode-tools
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension msjsdiag.debugger-for-edge
code --install-extension nickdemayo.vscode-json-editor
code --install-extension nrwl.angular-console
code --install-extension PKief.material-icon-theme
code --install-extension yzhang.markdown-all-in-one
#--- Uninstall unnecessary applications that come with Windows out of the box ---
Write-Host "Uninstall some applications that come with Windows out of the box" -ForegroundColor "Yellow"
#Referenced to build script
# https://docs.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
# https://github.com/jayharris/dotfiles-windows/blob/master/windows.ps1#L157
# https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
# https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1
function removeApp {
Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where DisplayName -like $appName | Remove-AppxProvisionedPackage -Online
}
$applicationList = @(
"Microsoft.BingFinance"
"Microsoft.3DBuilder"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
"Microsoft.CommsPhone"
"Microsoft.Getstarted"
"Microsoft.WindowsMaps"
"*MarchofEmpires*"
"Microsoft.GetHelp"
"Microsoft.Messaging"
"*Minecraft*"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.OneConnect"
"Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder"
"*Solitaire*"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.Office.Sway"
"Microsoft.XboxApp"
"Microsoft.XboxIdentityProvider"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"Microsoft.NetworkSpeedTest"
"Microsoft.FreshPaint"
"Microsoft.Print3D"
"*Autodesk*"
"*BubbleWitch*"
"king.com*"
"G5*"
"*Dell*"
"*Facebook*"
"*Keeper*"
"*Netflix*"
"*Twitter*"
"*Plex*"
"*.Duolingo-LearnLanguagesforFree"
"*.EclipseManager"
"ActiproSoftwareLLC.562882FEEB491" # Code Writer
"*.AdobePhotoshopExpress"
);
foreach ($app in $applicationList) {
removeApp $app
}
# Run this to download this
# Invoke-WebRequest -Uri https://gist.githubusercontent.com/jjczopek/91803ffdc8eb994f1515aa001ee348a0/raw/setup-env.ps1 -OutFile .\setup-env.ps1;Set-ExecutionPolicy Bypass -Scope Process -Force; .\setup-env.ps1;
# install choco
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
#--- File Explorer Settings ---
# will expand explorer to the actual folder you're in
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
#adds things back in your left pane like recycle bin
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
#opens PC to This PC, not quick access
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
#taskbar where window is open for multi-monitor
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
# choco packages
#https://kurtdowswell.com/developer%20productivity/setup-new-developer-pc/
#https://gist.github.com/jabbera/6b4f34065d0e387c16100c94943a0b49
#https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
#https://github.com/microsoft/windows-dev-box-setup-scripts
# fonts
cinst firacode -y
cinst cascadiafonts -y
# base tools & utils
cinst 7zip.install -y
cinst notepadplusplus.install -y
cinst googlechrome -y
cinst firefox -y
cinst mremoteng -y
cinst doublecmd -y
cinst greenshot -y
cinst postman -y
cinst fiddler -y
cinst screentogif -y
cinst paint.net -y
cinst notion -y
cinst keepassxc -y
# git
cinst git.install -y
cinst gitextensions -y
cinst kdiff3 -y
# dev tools
cinst visualstudio2019enterprise -y
cinst visualstudio2019-workload-netcoretools -y
cinst visualstudio2019-workload-netweb -y
cinst netfx-4.8-devpack -y
cinst dotnetcore-sdk -y
cinst resharper-platform -y
cinst resharper -y
cinst dotMemory -y
cinst dotTrace -y
cinst dotPeek -y
cinst sql-server-management-studio --skip-virus-check -y
cinst dnspy -y
# azure rools
cinst azure-cli -y
cinst nodejs.install -y
# virtualizaion & docker
cinst Microsoft-Hyper-V-All --source="'windowsFeatures'" -y
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
RefreshEnv
cinst docker-for-windows -y
# windows terminal
cinst microsoft-windows-terminal -y
# configure terminal & powershell profile
Install-Module posh-git -Scope CurrentUser -Force
Install-Module oh-my-posh -Scope CurrentUser -Force
Install-Module Az -Scope CurrentUser -Force
@"
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
"@ | Out-File $PROFILE
$profile = @'
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles": {
"defaults": {
"fontFace": "Cascadia Code PL"
},
"list": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false
}
]
}
}
'@
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
[System.IO.File]::WriteAllLines(($env:LOCALAPPDATA + "\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json"), $profile , $Utf8NoBomEncoding)
# VSCode
cinst visualstudiocode -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment