Skip to content

Instantly share code, notes, and snippets.

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
@ruby0x1
ruby0x1 / hash_fnv1a.h
Last active May 30, 2025 19:22
FNV1a c++11 constexpr compile time hash functions, 32 and 64 bit
#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) {
@jugyo
jugyo / gist:3882497
Created October 13, 2012 00:16
nginx + ngx_lua on Mac