Skip to content

Instantly share code, notes, and snippets.

View olix0r's full-sized avatar
🍓

Oliver Gould olix0r

🍓
View GitHub Profile
@olix0r
olix0r / flat-network.sh
Last active October 3, 2023 19:04 — forked from alpeb/flat-network.sh
2 k3d clusters with 3 nodes each, using the same flat network
#!/usr/bin/env bash
set -xeuo pipefail
k3d_api_ready() {
name=$1
for i in {1..6} ; do
if kubectl --context=k3d-$name cluster-info >/dev/null ; then return ; fi
sleep 10
done
@olix0r
olix0r / jammer.scala
Last active December 18, 2015 14:59 — forked from anonymous/jammer.scala
import com.twitter.finagle.{Filter, Service}
import com.twitter.util.{Await, Future}
case class Fruit(flavor: String)
case class Veggie(flavor: String)
case class Jam(flavor: String)
object Jammer extends Service[Veggie, Jam] {
def apply(veg: Veggie) =
Future value Jam(veg.flavor)