Skip to content

Instantly share code, notes, and snippets.

@dknoodle
dknoodle / Windows Defender Exclusions VS 2017.ps1
Last active October 31, 2024 14:54
Adds Windows Defender exclusions for Visual Studio 2017
$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 (x86)\Microsoft Visual Studio 14.0') > $null
@ba55ie
ba55ie / client.js
Last active February 20, 2019 07:11
Node.js SignalR V2.2.0 client
'use strict';
const jsdom = require('jsdom');
const window = jsdom.jsdom().defaultView;
const url = 'http://YOUR_SIGNALR_URL'; // Used for CORS
const hubs = 'http://YOUR_SIGNALR_HUBS_URL';
function loadScript(src) {
return new Promise((resolve, reject) => {