Skip to content

Instantly share code, notes, and snippets.

@andrewjjenkins
andrewjjenkins / cassandra.yaml
Created February 19, 2019 22:26
an example cassandra config that works for aspenmesh/istio 1.0.4
apiVersion: v1
kind: Namespace
metadata:
name: cassandra
---
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra
@andrewjjenkins
andrewjjenkins / README.md
Last active August 20, 2019 21:48
Build oneliners

Just a list of one-liners I keep using, forgetting and hunting for in history when building Envoy

bazel test //test/common/upstream/...
bazel test --test_output=errors //test/common/upstream:health_checker_impl_test
tools/bazel-test-gdb //test/common/upstream:health_checker_impl_test -c dbg --test_arg=--gtest_filter=TcpHealthCheckerImplTest.TimeoutAfterDisconnect
tools/bazel-test-gdb //test/common/upstream:health_checker_impl_test -c dbg
bazel build //source/exe:envoy-static -c dbg
bazel-bin/source/exe/envoy-static --config-path configs/google_com_proxy.v2.yaml --component-log-level connection:debug,upstream:debug
@andrewjjenkins
andrewjjenkins / animals.pl
Created March 1, 2022 22:04
A Prolog problem to solve a Knights-and-Knaves example from a teambuilding exercise
% Constraint Logic Programming
:- use_module(library(clpb)). % Boolean constraints
animals(1, [Horse, Cow, Chicken, Pig, Sheep, Goat, Swan, Cat]) :-
sat(card([6],[Horse, Cow, Chicken, Pig, Sheep, Goat, Swan, Cat])),
% Swan: "I'm the only honest bird"
sat(Swan =:= ~Chicken),
% Cow: "You can't trust the cat"
@andrewjjenkins
andrewjjenkins / animals.pl
Last active March 1, 2022 22:19
A prolog skeleton for a Knights-and-Knaves problem with 8 animals
% Constraint Logic Programming
:- use_module(library(clpb)). % Boolean constraints
animals(1, [Horse, Cow, Chicken, Pig, Sheep, Goat, Swan, Cat]) :-
labeling([Horse, Cow, Chicken, Pig, Sheep, Goat, Swan, Cat]).
/** <examples> Your example queries go here, e.g.
?- animals(1, [Horse, Cow, Chicken, Pig, Sheep, Goat, Swan, Cat]).
*/