Skip to content

Instantly share code, notes, and snippets.

View nicksterx's full-sized avatar

Nick Bachicha nicksterx

  • Albuquerque, New Mexico
View GitHub Profile
@nicksterx
nicksterx / Convert-CodeCoverage.ps1
Created February 24, 2020 22:37
Convert Code Coverage to Coveragexml
Get-ChildItem -Path .\ -Filter *.coverage -Recurse -File | ForEach-Object {
Write-Host "Processing $($_.FullName)"
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe" analyze /output:"$($_.FullName)xml" "$($_.FullName)"
}
@nicksterx
nicksterx / KeyboardLeds.ps1
Created October 7, 2019 18:30
Flash the leds on your keyboard progressively faster
$wsh = New-Object -ComObject WScript.Shell
$speed = 100
while ($speed -gt 0) {
$wsh.SendKeys('{NUMLOCK}')
Start-Sleep -Milliseconds $speed
$wsh.SendKeys('{CAPSLOCK}')
Start-Sleep -Milliseconds $speed
$wsh.SendKeys('{SCROLLLOCK}')
Start-Sleep -Milliseconds $speed
$speed=$speed-1
@nicksterx
nicksterx / IsSnesAvailable.ps1
Last active August 22, 2017 21:14
Check to see if snes class is available on gamestops website.
$title = (curl www.gamestop.com/collection/snes-classic).ParsedHtml.head.innerText
$count = 1;
$lastRan = Get-Date -Format g
Write-Host Attempt $count - $title - $lastRan
DO{
start-sleep -Seconds 300
$title = (curl www.gamestop.com/collection/snes-classic).ParsedHtml.head.innerText
$lastRan = Get-Date -Format g
$count++
@nicksterx
nicksterx / disableHTTP2OnWindows10And2016.ps1
Last active November 2, 2023 01:47
Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016 VADC desktop. You can prevent this error by disabling the HTTP/2 protocol on the desktop.
#2017-20-04
#Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops
#With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016.
#You can prevent this error by disabling the HTTP/2 protocol on the desktop.
#http://stackoverflow.com/a/31714461/2375884
#https://pubs.vmware.com/horizon-7-view/index.jsp?topic=%2Fcom.vmware.view-agent.directconnectionplugin.doc%2FGUID-BE0738EC-E35E-4215-8E1E-1F08F911D592.html
$registryPath = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters"
$nameEnableHttp2Tls = "EnableHttp2Tls"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>InfiniMail</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">