// .NET Core 2.2
.AddJwtBearer(options =>
{
var vp = options.TokenValidationParameters;
vp
is:
{ | |
"SchemaVersion": 1, | |
"Name" : "SeeedOLED_I2C", | |
"ComponentId" : "4595840c-94e8-48ea-9bd2-1b8167015973", | |
"EntryPoint": "/bin/app", | |
"CmdArgs": [], | |
"Capabilities": { | |
"AllowedConnections": [], | |
"AllowedTcpServerPorts": [], | |
"AllowedUdpServerPorts": [], |
# Error: release prometheus-operator failed: customresourcedefinitions.apiextensions.k8s.io | |
# "alertmanagers.monitoring.coreos.com" already exists | |
# https://github.com/coreos/prometheus-operator/issues/2229 | |
kubectl delete crd prometheusrules.monitoring.coreos.com | |
kubectl delete crd servicemonitors.monitoring.coreos.com | |
kubectl delete crd alertmanagers.monitoring.coreos.com |
#!/bin/bash | |
# Usage ./cleanup-k8s-terminating-namespace.sh <namespace> | |
NAMESPACE=$1 | |
echo Cleaning up namespace $1 | |
kubectl proxy & | |
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' > /tmp/temp.json |
helm ls | grep FAILED | awk '{print $1}' | xargs helm delete --purge --debug |
$ openssl s_time -connect amisecure.azurewebsites.net:443 -www / -cipher 'RSA' -new | |
Collecting connection statistics for 30 seconds | |
***************************************************************************************************************************** | |
125 connections in 0.29s; 431.03 connections/user sec, bytes read 366875 | |
125 connections in 31 real seconds, 2935 bytes read per connection |
[package] | |
name = "iron" | |
version = "0.1.0" | |
authors = ["snobu <foo@snobu.org>"] | |
edition = "2018" | |
[dependencies] | |
iron = "*" | |
rustc-serialize = "*" | |
chrono = "*" |
# Launch VS Code with 'code' or 'code <path>' from Fish Shell | |
function code | |
set location "$PWD/$argv" | |
open -n -b "com.microsoft.VSCode" --args $location | |
end |
// .NET Core 2.2
.AddJwtBearer(options =>
{
var vp = options.TokenValidationParameters;
vp
is:
OAuth 2.0 debugger - https://oauthdebugger.com/
OpenID Connect debugger - https://oidcdebugger.com/
OpenID Connect |
---|
import requests | |
import base64 | |
SUBSCRIPTION_KEY = '' | |
ISSUE_TOKEN_URL = '' | |
def get_bearer(SUBSCRIPTION_KEY, ISSUE_TOKEN_URL): | |
headers = { | |
'Ocp-Apim-Subscription-Key': SUBSCRIPTION_KEY, | |
} |