Skip to content

Instantly share code, notes, and snippets.

View ChrisLGardner's full-sized avatar

Chris Gardner ChrisLGardner

View GitHub Profile
@ChrisLGardner
ChrisLGardner / Hide-FromDebugger.ps1
Created July 31, 2017 08:19 — forked from Jaykul/Hide-FromDebugger.ps1
Have you ever wished you could hide a few commands from the PowerShell step-through?
<#
.SYNOPSIS
Wrap commands with DebuggerNonUserCode attribute to prevent the PowerShell debugger stepping into them
.DESCRIPTION
Generates proxy functions that wrap the original commands, and put an attribute on the proxy to prevent the debugger stopping.
.EXAMPLE
Get-Command -Module Pester | Hide-FromDebugger
Hides all pester functions from the debugger, so you can debug in your code without stepping into Pester functions.
#>
@ChrisLGardner
ChrisLGardner / Randomfile.json
Created March 30, 2016 14:16
Xml file pushed to convertto-json
[
[
],
[
],
[
[
"System.Xml.XmlElement",