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
| version: "3" | |
| services: | |
| app: | |
| image: 'jc21/nginx-proxy-manager:latest' | |
| restart: unless-stopped | |
| ports: | |
| # These ports are in format <host-port>:<container-port> | |
| - '80:80' # Public HTTP Port | |
| - '443:443' # Public HTTPS Port | |
| - '81:81' # Admin Web Port |
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
| <#PSScriptInfo | |
| .VERSION 1.0.1 | |
| .GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6 | |
| .AUTHOR Robert Bleattler | |
| .COMPANYNAME Coast Technologies LLC |
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 Find-StringInFile { | |
| <# | |
| .SYNOPSIS | |
| Find strings within the contents of files in a given directory. | |
| .DESCRIPTION | |
| Find strings within the contents of files in a given directory. Supports recursion | |
| .EXAMPLE | |
| PS C:\> Find-StringInFile -String "SomeExampleText" -RootPath $PWD | |
| This will search the current directory for files containing the string "SomeExampleText" | |
| .EXAMPLE |
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 Import-PSReadLineKeyHandlerSettings { | |
| param( | |
| [Parameter(Mandatory)] | |
| [string] | |
| $Path | |
| ) | |
| begin { | |
| $ObjectToProcess = Get-Content $Path -Raw | ConvertFrom-Json | |
| } | |
| process { |
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 ConvertFrom-HashTable { | |
| <# | |
| .SYNOPSIS | |
| This function will convert a hashtable to a [PSCustomObject] | |
| .DESCRIPTION | |
| This command will convert a hashtable to a [PSCustomObject] | |
| .EXAMPLE | |
| PS C:\> $HashTable | |
| Name Value |
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
| # @prefix Function Advanced | |
| # @description Advanced Function Block | |
| function Write-MyFunction { | |
| [CmdletBinding()] | |
| param ( | |
| $$MyVariable1 | |
| ) | |
| begin { | |
| Write-Debug "Enter [$($$PSCmdlet.MyInvocation.MyCommand.Name)]..." |
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-FileAttributes { | |
| [CmdletBinding()] | |
| param ( | |
| [string] | |
| $FilePath | |
| ) | |
| begin { | |
| Write-Debug "Enter [$($PSCmdlet.MyInvocation.MyCommand.Name)]..." | |
| $PSBoundParameters.Keys.ForEach{ | |
| if ($PSBoundParameters.PSItem -is [string]) { |
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-RepositoryStats { | |
| [CmdletBinding()] | |
| param ( | |
| [string] | |
| $WorkDirectory, | |
| [switch] | |
| $UseGitignore, | |
| [switch] | |
| $Novels | |
| ) |
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 Write-Verbose { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory, ValueFromPipeline, Position = 0)] | |
| [string] | |
| $Message, | |
| [Parameter()] | |
| [switch] | |
| $TimeStamp | |
| ) |
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
| param ( | |
| [Parameter(ParameterSetName = 'Enable', Mandatory)] | |
| [switch] | |
| $Enable, | |
| [Parameter(ParameterSetName = 'Disable', Mandatory)] | |
| [switch] | |
| $Disable | |
| ) | |
| function Set-MouseScrollDirection { |