Skip to content

Instantly share code, notes, and snippets.

diff --git a/envoyauth/request.go b/envoyauth/request.go
index f422d13c..8eeea3ba 100644
--- a/envoyauth/request.go
+++ b/envoyauth/request.go
@@ -34,6 +34,7 @@ func RequestToInput(req interface{}, logger logging.Logger, protoSet *protoregis
var bs, rawBody []byte
var path, body string
var headers, version map[string]string
+ var jwt, action string
@EItanya
EItanya / pool.rs
Created November 29, 2022 19:14
Pool impl with generic key
#![allow(dead_code)]
use std::collections::{HashMap, HashSet, VecDeque};
use std::error::Error;
use std::fmt::{self, Debug};
use std::future::Future;
use std::hash::Hash;
use std::marker::Unpin;
use std::ops::{Deref, DerefMut};
use std::pin::Pin;
federation:
selectors:
- {}
eastWestIngressGatewaySelectors:
- portName: tls
destinationSelectors:
- kubeServiceMatcher:
labels:
istio: ingressgateway
docker run envoyproxy/envoy:v1.18.3 --mode validate --config-yaml '
static_resources:
clusters:
- name: endpoint
connect_timeout: 15.000s
type: STRICT_DNS
lb_policy: round_robin
load_assignment:
cluster_name: endpoint
endpoints:
package main
import (
"bufio"
"bytes"
"fmt"
"math"
"strconv"
"strings"
)
function importsForFile(path) {
return {
"main.x": ["thread.x", "message.x"],
"thread.x": ["message.x", "contact.x"],
"message.x": ["contact.x"],
"contact.x": [],
}[path];
}
def division(n, divisor):
if divisor == 0 or n == None or divisor == None:
return None
x = 0
counter = 0
while (x + divisor) <= n:
x += divisor
counter += 1