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
openapi: 3.0.3 | |
info: | |
title: Risk Review | |
description: |- | |
description goes here .... | |
termsOfService: http://swagger.io/terms/ | |
contact: | |
email: dev@availcarsharing.com | |
license: |
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
import Adapter from "ember-data/adapters/rest"; | |
export default Adapter.extend(); |
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
Get-WebBinding | % { | |
$name = $_.ItemXPath -replace '(?:.*?)name=''([^'']*)(?:.*)', '$1' | |
New-Object psobject -Property @{ | |
Name = $name | |
Binding = $_.bindinginformation.Split(":")[-1] | |
Port = [int]::Parse($_.bindinginformation.Split(":")[1]) | |
} | |
} | | |
#Where-Object {$_.Name -like "Site1-*"} | | |
Sort-Object Port | |
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 Start-ElevatedUACSession { | |
$outputFiles = @{ | |
Standard = [System.IO.Path]::GetTempFileName(); | |
Error = [System.IO.Path]::GetTempFileName(); | |
} | |
$cmd = [string]::Join(" ", $args) | |
Write-Host "Executing Elevated: $cmd" | |
Start-Process powershell -Verb "runAs" -WindowStyle Hidden -Wait -ArgumentList "/Command ""& { $cmd > '$($outputFiles.Standard)' }""" | |
Get-Content $outputFiles.Standard | |
$outputFiles.Values | Remove-Item |
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 Get-ShowTimes($movie) { | |
$url = "https://www.bing.com/search?q=$movie movie showings" | |
$result = Invoke-WebRequest -URI $url | |
$result.AllElements | | |
Where ID -eq "tab_2" | | |
Select -First 1 -ExpandProperty innerText | |
} | |
Get-ShowTimes StarWars | |
Get-ShowTimes "Daddy's Home" | |
Get-ShowTimes "The Revenant" |