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
function Get-InactiveTcpPort { | |
$listener = [System.Net.Sockets.TcpListener]::new(0) | |
$listener.Start() | |
[int]$port = $listener.LocalEndpoint.Port | |
$listener.Stop() | |
return $port | |
} | |
# faster version | |
function Get-InactiveTcpPort { |
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
#requires -version 5.1 | |
<# | |
.Synopsis | |
Queries the issues section of a GitHub repository and tabulates open issue statistics. | |
.DESCRIPTION | |
Queries the issues section of a GitHub repository using GitHub REST API and tabulates output showing the number of open issues by label with percentage detail. | |
Pull Requests are issues, but issues wre not Pull Requests, this function provides filtering for Pull Requests. | |
The customer collects a maximum 1000 issues, max 10 Pages having 100 issues to comply with GitHub rate limits. | |
.EXAMPLE |