I hereby claim:
- I am bjd145 on github.
- I am briandenicola (https://keybase.io/briandenicola) on keybase.
- I have a public key ASB7FyjH1PqlLymU09R-CQTDRwDQhUvaG2FiKhlzzLp7iAo
To claim this, I am signing this object:
using System; | |
using Azure; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Search; | |
using Microsoft.Azure.Search.Models; | |
using Azure.Search.Documents; | |
using Azure.Search.Documents.Indexes; | |
using Azure.Search.Documents.Indexes.Models; |
kubectl proxy | |
curl -X PATCH -d "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}" -H 'Content-Type: application/strategic-merge-patch+json' http://localhost:8001/apis/apps/v1/namespaces/default/deployments/demo |
{ | |
"type": "Microsoft.ApiManagement/service/gateways", | |
"apiVersion": "2019-12-01", | |
"name": "[concat(parameters('apimName'), '/demo')]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.ApiManagement/service', parameters('apimName'))]" | |
], | |
"properties": { | |
"locationData": { | |
"name": "Dallas" |
startup.cs | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.AzureAD.UI; | |
services.AddAuthentication(AzureADDefaults.AuthenticationScheme) | |
.AddAzureAD(options => Configuration.Bind("AzureAd", options)); | |
services.AddControllersWithViews(options => | |
{ |
export PAT='' | |
export DB-WORKSPACE='' | |
export WHITELIST='1.1.1.1/32' | |
#Enable | |
curl -X PATCH -H "Authorization: Bearer ${PAT}" https://${DB-WORKSPACE}/api/2.0/preview/workspace-conf?keys=enableIpAccessLists -d '{ "enableIpAccessLists": "true", }' | |
#Create | |
curl -X PUT -H 'Authorization: Bearer ${PAT}' https://${DB-WORKSPACE}/api/2.0/preview/ip-access-lists -d "{ \"label\": \"home\", \"list_type\": \"WHITELIST\", \"ip_addresses\": [ $WHITELIST ] }" |
function New-APIMHeader { | |
param( | |
[string] $key | |
) | |
$header = @{} | |
$header.Add('Ocp-Apim-Subscription-Key', $Key) | |
return $header | |
} |
I hereby claim:
To claim this, I am signing this object:
function Get-SPListViaWebService( [string] $url, [string] $list, [string] $view = $null ) | |
{ | |
begin { | |
$listData = @() | |
$service = New-WebServiceProxy (Get-WebServiceURL -url $url) -Namespace List -UseDefaultCredential | |
$FieldsWS = $service.GetList( $list ) | |
$Fields = $FieldsWS.Fields.Field | where { $_.Hidden -ne "TRUE"} | Select DisplayName, StaticName -Unique | |
$data = $service.GetListItems( $list, $view, $null, $null, $null, $null, $null ) | |
} | |
process { |