Skip to content

Instantly share code, notes, and snippets.

@mbafford
mbafford / summarizejson
Last active April 5, 2024 17:54
summarizejson - Summarize JSON Structure (keys and data types)
#!/usr/bin/env python
# Gives a quick summary of the structure of a JSON file, including the keys, object types, and
# leaf node types. Provides a count of each data type so you can quickly tell which data points
# are common.
#
# Example:
#
# $ curl -sS 'https://raw.githubusercontent.com/johan/world.geo.json/master/countries.geo.json' | python summarizejson
# 9191 {features}.[].{geometry}.{coordinates}.[].[].[].[].float
# 41 {features}.[].{geometry}.{coordinates}.[].[].[].[].int
@MyITGuy
MyITGuy / ProcMonAltitude.psm1
Last active April 2, 2024 18:11
Registry settings to adjust ProcMon driver altitude
#region Set-ProcMonAltitude
function Set-ProcMonAltitude {
[CmdletBinding()]
PARAM(
[Parameter(Mandatory = $false, Position = 0)]
[int32[]]
$Version = @(23, 24)
,
[Parameter(Mandatory = $false, Position = 1)]
[int32[]]