Skip to content

Instantly share code, notes, and snippets.

@amarrella
amarrella / 00-before-format.dhall
Created July 26, 2019 19:54
dhall broken hash example
let settings =
https://raw.githubusercontent.com/my-org/my-private-repository/master/config/shared/iam/Kubernetes.dhall using [ { header =
"Authorization"
, value =
"token ${env:GITHUB_TOKEN as Text}"
}
] sha256:1630c1cb84680beda4654fa955644b94f9afd3c8b176a84f90272417a679f6f3
in settings

Keybase proof

I hereby claim:

  • I am amarrella on github.
  • I am amarrella (https://keybase.io/amarrella) on keybase.
  • I have a public key ASA7VBFXXljSOxdPLjISr7VsFMGSxG8At1oB_qKsH4XobQo

To claim this, I am signing this object:

@amarrella
amarrella / TaskWithTimeout.scala
Created November 5, 2017 17:19
Timeout fs2 task
import fs2.Task
import scala.concurrent.duration.FiniteDuration
object TaskWithTimeout {
implicit class TaskWithTimeout[A](x: Task[A]) {
/**
* If the main task fails or times out, it returns the default value
*/