I hereby claim:
- I am markekraus on github.
- I am markekraus (https://keybase.io/markekraus) on keybase.
- I have a public key ASAQRsY5KChGA8ePPV6gQ5ilSZ4KFmVciWsQL-ud4zZnGAo
To claim this, I am signing this object:
#Requires -Modules AzureRM.Profile, AzureAD | |
$DeviceObjectId = '' # Set an objectID for a device | |
$SubScriptionID = '' # change with your subscription ID | |
Add-AzureRmAccount | |
$Subscription = Select-AzureRmSubscription -Subscription $SubScriptionID | |
$currentAzureContext = Get-AzureRmContext -Name $Subscription.Name | |
$TenantId = $currentAzureContext.Tenant.Id | |
$tokenCache = $currentAzureContext.TokenCache | |
$Cache = $tokenCache.ReadItems().Where({$_.ExpiresOn -gt (Get-Date) -and $_.TenantId -eq $TenantId })[0] |
I hereby claim:
To claim this, I am signing this object:
Invoke-WebRequest 'google.com' | Out-MarkDown |
$MyObjGlobal = [PSCustomObject]@{ | |
PSTypeName = 'MyObj' | |
Prop1 = 'Value1' | |
} | |
$MyObjFunction = [PSCustomObject]@{ | |
PSTypeName = 'MyObj' | |
Prop1 = 'Value1' | |
} |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Management.Automation; | |
using System.Text; | |
namespace System.Management.Automation | |
{ | |
internal interface IInvokeDownloadProtocolFactory | |
{ |
----------------------- Azure Web App Deployment Log ----------------------------------- | |
log_time : 2018-02-18T21:11:19.1757131Z | |
id : 9e378a01-337f-4303-bd35-39f84845320b | |
message : Updating submodules. | |
type : 0 | |
details_url : | |
log_time : 2018-02-18T21:11:19.3475551Z |
using namespace System.Collections.Concurrent | |
$StartDate = [datetime]::UtcNow | |
# can be generated with something like | |
# 1..10 | %{ Get-Credential} | Export-CliXml -path 'C:\reports\InboxRules\Creds.xml' | |
# Which will prompt for credentials 10 times and store them in the xml file | |
$CredentialFile = 'C:\reports\InboxRules\Creds.xml' | |
$RunDate = $StartDate.ToString('o') -replace ':' | |
# This is the path of the CSV file. It is imperative that this file not be | |
# access while the script is running |
function ConvertTo-Base64KMSEncryptedString { | |
[CmdletBinding()] | |
param ( | |
[Parameter( | |
Mandatory = $true, | |
ValueFromPipeline = $true | |
)] | |
[String[]] | |
$String, |
using System; | |
namespace Lambda | |
{ | |
public class CodeCommitEventCodecommitReference | |
{ | |
public string commit; | |
public bool created = false; | |
public string @ref; |
.\commands\utility\WebCmdlet\StreamHelper.cs(279,27): error SA1204: Static members should appear before non-static members | |
.\commands\utility\WebCmdlet\FormObject.cs(40,16): error SA1201: A constructor should not follow a property | |
.\commands\utility\WebCmdlet\FormObject.cs(17,23): error SA1609: Property documentation should have value | |
.\commands\utility\WebCmdlet\FormObject.cs(22,23): error SA1609: Property documentation should have value | |
.\commands\utility\WebCmdlet\FormObject.cs(27,23): error SA1609: Property documentation should have value | |
.\commands\utility\WebCmdlet\FormObject.cs(32,43): error SA1609: Property documentation should have value | |
.\commands\utility\WebCmdlet\FormObjectCollection.cs(19,13): error SA1616: Element return value documentation should have text | |
.\commands\utility\WebCmdlet\FormObjectCollection.cs(18,13): error SA1614: Element parameter documentation should have text | |
.\commands\utility\WebCmdlet\Common\BasicHtmlWebResponseObject.Common.cs(5,1): error SA1200: Using directive should ap |