Skip to content

Instantly share code, notes, and snippets.

View wklken's full-sized avatar
😄
Coding

wklken wklken

😄
Coding
View GitHub Profile
@wklken
wklken / wildcardmatch.go
Last active July 30, 2022 01:17
golang wildcard match
# use https://github.com/minio/pkg/tree/main/wildcard
import (
"github.com/minio/pkg/wildcard"
)
matched := wildcard.Match(pattern, text)
@wklken
wklken / status_code_analysis.lua
Last active November 4, 2023 07:56 — forked from non-static/status_code_analysis.lua
Lua script for wrk2 to count response code and a particular header
local counter = 1
local threads = {}
function setup(thread)
thread:set("id", counter)
table.insert(threads, thread)
counter = counter + 1
end
function init(args)