I hereby claim:
- I am russcam on github.
- I am russcam (https://keybase.io/russcam) on keybase.
- I have a public key ASA-7ffVHxpC0Qs_F5orNv3SREep4hhx8m5fAuWhsItNaAo
To claim this, I am signing this object:
void Main() | |
{ | |
var client = new ElasticClient(); | |
var cancellationTokenSource = new CancellationTokenSource(); | |
client.Search<Document>(s => s | |
.Query(q => q | |
.MatchAll() | |
) | |
.RequestConfiguration(r => r |
void Main() | |
{ | |
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); | |
var connectionSettings = new ConnectionSettings(pool); | |
var client = new ElasticClient(connectionSettings); | |
/** | |
All the following produce the query json | |
{ | |
"took": 55, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 2, |
void Main() | |
{ | |
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); | |
var defaultIndex = "default-index"; | |
var connectionSettings = new ConnectionSettings(pool) | |
.DefaultIndex(defaultIndex) | |
.PrettyJson() | |
.DisableDirectStreaming() | |
.OnRequestCompleted(response => | |
{ |
I hereby claim:
To claim this, I am signing this object:
When a custom probe is specified in an Azure Resource Manager template that includes custom matching status codes to consider the backend pool as healthy, the Custom probe matching checkbox in the portal remains unchecked; when checked, the status codes defined in the ARM template do not appear in the portal UI, although it does appear that Application Gateway is using the provided status codes.
Here's an example of the match condition for a probe in a template:
"match": {
"statusCodes": ["200-399", "401"]
}
New-Module -Name ElasticStack -Scriptblock { | |
function WriteLog { | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Position=0, Mandatory=$true, ValueFromPipelineByPropertyName=$true)] | |
[ValidateNotNullOrEmpty()] | |
[Alias("M")] | |
[string]$Message |
// Using NEST 6.2.0 with NEST.JsonNetSerializer 6.2.0 | |
private static void Main() | |
{ | |
var defaultIndex = "documents"; | |
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); | |
var connectionSettings = new ConnectionSettings(pool, new InMemoryConnection(), (builtin, settings) => | |
new JsonNetSerializer(builtin, settings, contractJsonConverters: new JsonConverter[] { new StringEnumConverter() })) | |
.DefaultIndex(defaultIndex) |
#!/bin/bash | |
current_archive=$1 | |
current_password=$2 | |
new_password=$3 | |
new_archive=$4 | |
if [[ -z "$new_archive" ]]; then | |
new_archive="${current_archive%.*}_new.p12" | |
fi |
New-Module -Name GuestUsers -Scriptblock { | |
$modules = Get-Module -ListAvailable AzureAD* | |
if ($null -eq $modules) { | |
Write-Output "Install AzureADPreview module" | |
Install-Module AzureADPreview | |
} | |
elseif (($modules | ?{ $_.Name -eq "AzureAD" }).Count -eq 1) { | |
Write-Output "Uninstall AzureAD module and install AzureADPreview module" |