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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[System.Net.ServicePointManager]::SecurityProtocol | |
Ssl3, Tls |
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
[System.Net.ServicePointManager]::SecurityProtocol += [System.Net.SecurityProtocolType]::'Tls12' | |
[System.Net.ServicePointManager]::SecurityProtocol | |
Ssl3, Tls, Tls12 |
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
Invoke-RestMethod -Method POST -Body $Body -Uri $URI -SslProtocol Tls12 |
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
$SecurePassword = ConvertTo-SecureString “P@ssword” -AsPlainText -Force | |
Connect-vRAServer -Server vraappliance01.domain.local -Tenant Tenant01 -Username TenantAdmin01 -Password $SecurePassword -IgnoreCertRequirements -SslProtocol Tls12 |
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
Server : https://vraapliance08.vrademo.local | |
Token : MTUxMzI1MTgwMzEzMjpiZjI4MjQzZDY5ZTM5ZGU3ZjgwMzp0ZW5hbnQ6dGVuYW50MDF1c2VybmFtZTp0ZW5hbnRhZG1pbjAxQHZyYWRlbW8ubG9jYWxleHBpcmF0aW9uOjE1MTMyODA2MDMwMDA6ODczZjZhZTM2ZDY1YTY3OT | |
AzMjcyNmY5Yjc4NmIxZDI5N5YWFkM2Q0ZmE2MGI2NGY5Mzg0ZWJjMzViMDk0MDhlYzBkZTVmOTMxODI2YWE5ZmI5YTEyZTBiYWEyNzE0NGQyOTNmZDA1YWRlNmE3MzcyMDE3MTExMzk4NzIxMTA= | |
Tenant : Tenant01 | |
Username : Tenantadmin01@vrademo.local | |
APIVersion : 7.3 | |
SignedCertificates : False | |
SslProtocol : Default | |
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
Set-Content -Path 'C:\test' -Encoding Byte |
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
Set-Content -Path '/root/test' -Encoding | |
ascii oem utf7 utf8BOM utf32 | |
bigendianunicode unicode utf8 utf8NoBOM |
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
Set-Content -Path '/root/test' -AsByteStream |
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
$env:PSMODULEPATH | |
/home/jmedd/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/6.0.0-rc/Modules |
OlderNewer