Skip to content

Instantly share code, notes, and snippets.

View edyoung's full-sized avatar
💭
Don't take life so serious... it ain't nohow permanent

Edwin Young edyoung

💭
Don't take life so serious... it ain't nohow permanent
View GitHub Profile
@edyoung
edyoung / qot.ps1
Last active February 14, 2023 14:01
A powershell script ('query over time') to repeat a query against Visual Studio Online as it would have appeared on multiple days
#
# QoT = Query Over Time. Take a JSON query for VSO and rerun it with several different AsOf dates, and dump the output to the pipeline
# Normal usage would be qot.ps1 -user edyoung -accessToken secrettoken -project SBS -team skype -startdate "8/1/2015" -enddate "9/1/2015" | ConvertTo-Csv -NoTypeInformation > bugdata.csv
param(
$user,
$accessToken,
$project,
$team,
@edyoung
edyoung / extract_msi_binary.ps1
Created September 9, 2022 23:45
Extract a file from an MSI binary table and save it to disk
[CmdletBinding()]
[OutputType(
[PSCustomObject]
)]
param (
[Parameter(
Mandatory = $true
)]
@edyoung
edyoung / insert_msi_binary.ps1
Created September 10, 2022 03:04
Insert a file into an MSI
[CmdletBinding()]
[OutputType(
[PSCustomObject]
)]
param (
[Parameter(
Mandatory = $true
)]