Skip to content

Instantly share code, notes, and snippets.

View mt-inside's full-sized avatar

Matt Turner mt-inside

View GitHub Profile
@mt-inside
mt-inside / envoy-config.json
Created March 13, 2024 10:14
EG Envoy 1.29.2 OIDC Crash - config
{
"envoy-gateway-system": {
"envoy-default-apps-f15e2297-9bd78cd9c-86l8k": {
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump",
"bootstrap": {
"admin": {
"accessLog": [
{
@mt-inside
mt-inside / gist:1b979efdbfa4eba9f68f8ce52190e6ec
Created March 13, 2024 10:04
Envoy 1.29.2 EG OIDC crash
[2024-03-13 09:03:02.952][1][warning][main] [source/server/server.cc:910] There is no configured limit to the number of allowed active downstream connections. Configure a limit in `envoy.resource_monitors.downstream_connections` resource monitor.
[2024-03-13 09:03:21.307][20][critical][assert] [source/extensions/filters/http/oauth2/oauth_client.cc:141] panic: Malformed oauth client state
[2024-03-13 09:03:21.307][20][critical][backtrace] [./source/server/backtrace.h:104] Caught Aborted, suspect faulting address 0xfffc00000001
[2024-03-13 09:03:21.307][20][critical][backtrace] [./source/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
[2024-03-13 09:03:21.307][20][critical][backtrace] [./source/server/backtrace.h:92] Envoy version: 2092d65bd4d476be8235ea541e5d25c096b513e6/1.29.2/Clean/RELEASE/BoringSSL
[2024-03-13 09:03:21.307][20][critical][backtrace] [./source/server/backtrace.h:98] #0: [0x733eaaf0c050]
[2024-03-13 09:03:21.307][20][critical][backtrace] [./source/server/backt
import { app } from 'hyperapp';
import h from 'hyperapp-jsx-pragma';
const AddTodo = (state) => ({
...state,
value: "",
todos: state.todos.concat(state.value),
})
@mt-inside
mt-inside / implicit.go
Last active March 23, 2021 13:06
Used in a blog!
package main
import "fmt"
type event int
const (
push event = iota
coin event = iota
)
@mt-inside
mt-inside / ifaces.go
Last active December 17, 2020 16:06
A tour of interfaces and type assertions.
type Foo interface {
GetA() int
}
type Bar interface {
GetA() int
GetB() string
}
type lol struct {
fn main() {
let mut post = Post::new();
post.add_text("This is a draft tweet");
println!("printable content: {}", post.content());
post.request_review();
println!("printable content: {}", post.content());
post.approve();
use std::cell::RefCell;
fn main() {
let mut post = Post::new();
post.add_text("This is a draft tweet");
println!("printable content: {}", post.content());
post.request_review();
println!("printable content: {}", post.content());
### Keybase proof
I hereby claim:
* I am mt-inside on github.
* I am mt (https://keybase.io/mt) on keybase.
* I have a public key ASA1Y4DRsZ5Wsj13354U10bKkQ8OmULNTJRQgWA7cqN-bQo
To claim this, I am signing this object: