http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit
| kubectl create ns fou 2>/dev/null || true | |
| kubectl label ns default istio-injection=enabled 2>/dev/null || true | |
| kubectl label ns fou istio-injection=enabled 2>/dev/null || true | |
| kubectl apply -f . | |
| gateway.networking.istio.io/helloworld unchanged | |
| virtualservice.networking.istio.io/helloworld created | |
| service/helloworld created | |
| deployment.apps/helloworld-v1 created | |
| deployment.apps/helloworld-v2 created |
| #pragma once | |
| #include <stdint.h> | |
| //fnv1a 32 and 64 bit hash functions | |
| // key is the data to hash, len is the size of the data (or how much of it to hash against) | |
| // code license: public domain or equivalent | |
| // post: https://notes.underscorediscovery.com/constexpr-fnv1a/ | |
| inline const uint32_t hash_32_fnv1a(const void* key, const uint32_t len) { |
http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit