Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 Set-QuickAccessItem | |
{ | |
<# | |
.SYNOPSIS | |
Pins or unpins a folder from Windows Quick Access (Home). | |
.DESCRIPTION | |
Uses the Shell COM object to pin or unpin a folder from Quick Access. | |
Automatically checks the current pin state to avoid unintended toggling. |
This file contains hidden or 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 hidden or 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 |