Skip to content

Instantly share code, notes, and snippets.

@jefflward
jefflward / Windows Defender Exclusions VS 2022.ps1
Last active May 2, 2022 19:57 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files\Microsoft Visual Studio\2022') > $null
@jefflward
jefflward / dev.azure.com.css
Last active June 4, 2020 15:23
Stylebot styling so stage button text is visible in dev.azure.com
div.active-release-details-container.flex.flex-column.active-releases-name-column {
max-width: 300px;
}
div.env-summary-node-new-plat .node-content {
width: unset ;
}
table.active-releases-details-list.bolt-table.bolt-list.body-m.relative.scroll-hidden {
table-layout: auto;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#js-pjax-container > div > div > div > div.flex-shrink-0.col-12.col-md-9.mb-4.mb-md-0 > div > div.container-lg.p-responsive.js-pinned-items-reorder-container.clearfix > div.js-pinned-items-reorder-container {
display: none;
}
@jefflward
jefflward / .gitprompt
Created September 29, 2022 13:18
Show git details in zsh prompt
# Configures your prompt to include branch and ahead (↑) and behind (↓) details
# Put this folder in your root folder ~/ next to your .zshrc
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' formats \
'%F{5}[%F{2}%b%F{5}] %F{2}%c%F{3}%u%f'
# Add up/down arrows after branch name, if there are changes to pull/to push