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
#Test-PortConnectivity -Source '127.0.0.1' -RemoteDestination 'dc1' -Port 57766 | |
#Test-PortConnectivity '127.0.0.1' 'dc1' 57766 -Protocol UDP -Iterate | |
#Test-PortConnectivity 'localhost' 'dc2' 51753 -Protocol UDP | |
#Test-PortConnectivity -Source $EUCAS -RemoteDestination $EUMBX -Port 135 -Iterate | |
#Test-PortConnectivity -Source 'localhost' -RemoteDestination '127.0.0.1' -Port 135 -Iterate -protocol TCP | |
Function Test-PortConnectivity() | |
{ | |
#source -> https://geekeefy.wordpress.com/2016/01/07/powershell-telnet-tcpudp-ports-on-multiple-machines/ | |
Param |
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 | |
Return a name based on Lorem Ipsum. | |
.DESCRIPTION | |
Calls public Loren Ipsum API and returns name and account name if requested. | |
.EXAMPLE | |
Get-LoremName | |
FirstName LastName | |
--------- -------- | |
Plane Gloriosam |
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 Add-WinRMDaclRule { | |
<# | |
.SYNOPSIS | |
Add a Discretionary Acl rule to the root WinRM listener or individual PSSession configuration. | |
.DESCRIPTION | |
Add a Discretionary Acl rule to the root WinRM listener or individual PSSession configuration. | |
This can be useful if you wish to give access to an individual user or group to either the root WinRM listener or | |
a specific PSSession configuration that is not an Administrator. |
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
// Discord all events! | |
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!) | |
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client | |
// Learn from this, do not just copy it mofo! | |
// | |
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584 | |
/* | |
koad-was-here |