This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Replaces a target file with a reference file if the reference file has a newer file version. | |
.DESCRIPTION | |
The function replaces a target file with a reference file if the reference file has a newer file version. | |
.PARAMETER ReferencePath | |
The path to the reference file. This file will be used to determine whether the target file should be replaced. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CLI util at https://www.speedtest.net/apps/cli | |
$results = 1..10 | % { .\speedtest.exe -f json } | |
$results | % { $j = ConvertFrom-Json $_; @{download=$j.download.bandwidth; upload=$j.upload.bandwidth; ping=$j.ping.latency; jitter = $j.ping.jitter}} | ConvertTo-Csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Spec | |
// https://docs.fileformat.com/audio/wav/ | |
public static WavHeader ParseWavHeader(this Stream fs) | |
{ | |
int bitDepth; | |
int channelCount; | |
int samplingRate; | |
int dataSectionByteCount; |