Skip to content

Instantly share code, notes, and snippets.

@stanpalatnik
stanpalatnik / istio-fips-build.sh
Created October 4, 2023 15:33 — forked from jeesmon/istio-fips-build.sh
Istio FIPS Build
ISTIO_VERSION=${ISTIO_VERSION:-1.16.1}
git clone https://github.com/istio/proxy.git --depth 1
pushd proxy
git fetch --tags
git checkout "${ISTIO_VERSION}"
# Compile envoy with FIPS: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/security/ssl#fips-140-2
echo "build --define boringssl=fips" >> .bazelrc
BUILD_WITH_CONTAINER=1 make build_wasm build build_envoy exportcache
@stanpalatnik
stanpalatnik / ParquetToArrow.java
Created June 5, 2019 18:35 — forked from animeshtrivedi/ParquetToArrow.java
Example program to convert Apache Parquet data to Apache Arrow
/* This code snippet is a part of the blog at
https://github.com/animeshtrivedi/blog/blob/master/post/2017-12-26-arrow.md
*/
import com.google.common.collect.ImmutableList;
import org.apache.arrow.memory.RootAllocator;
import org.apache.arrow.vector.*;
import org.apache.arrow.vector.dictionary.DictionaryProvider;
import org.apache.arrow.vector.types.FloatingPointPrecision;
import org.apache.arrow.vector.types.pojo.ArrowType;
detach { //this creates a new actor
completeWith { //we use a completeWith directive which respones with whatever we output at the end of the code block
var person = new Person();
person.address = getAddress(address['latitude'], address['longitude']).then((result) => person.address = result)
person.save
"saved!"
}
}