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
require 'json' | |
require 'aws-sigv4' | |
require 'active_support/core_ext' | |
params = { | |
'Action' => 'Publish', | |
'TargetArn' => 'arn:aws:sns:ap-northeast-1:000000000000:example-topic', | |
'Message' => 'message', | |
'Version' => '2010-03-31' | |
}.to_query |
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
{ | |
"eventId": "3o9jBzq1SmOGmmsDsqyyeQ", | |
"eventTime": "2020-01-17T21:23:56.000Z", | |
"eventType": "com.okta.user.credential.password.import", | |
"eventTypeVersion": "1.0", | |
"contentType": "application/json", | |
"cloudEventVersion": "0.1", | |
"source": "https://${yourOktaDomain}/api/v1/inlineHooks/cal2xd5phv9fsPLcF0g7", | |
"data": { | |
"context": { |
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
$VerbosePreference = "Continue" | |
Write-Verbose -Message "Creating the VM Switch" | |
$SwitchName=Read-Host "Switch Name" | |
New-VMSwitch -Name "$SwitchName" -SwitchType Internal | |
Write-Verbose -Message "Switch Created Successfully" | |
Write-Verbose -Message "Assiging IP and SubnetMask to $SwitchName" | |
$GateWay= Read-Host "Enter Gatway Address" | |
$prefixLength = 24 | |
$ifIndex = Get-NetAdapter | Where {$_.Name -like "*$SwitchName*"} | |
New-NetIPAddress -IPAddress $GateWay -PrefixLength $prefixLength -InterfaceIndex $ifIndex.ifIndex |