Skip to content

Instantly share code, notes, and snippets.

@9len
9len / ilovethisplan.md
Created April 26, 2021 15:58
I love this plan

I love this plan

Keybase proof

I hereby claim:

  • I am 9len on github.
  • I am 9len (https://keybase.io/9len) on keybase.
  • I have a public key ASDfd7Z_4XhfOzvCb4hw7iHW5tq4GZPIoLNM3_Bf3wxxzQo

To claim this, I am signing this object:

@9len
9len / retry_policy.json
Last active February 5, 2018 22:17
A Typical Envoy Retry Policy
{
"retry_on": "5xx",
"num_retries": 3,
"per_try_timeout_ms": "500m",
}
package com.twitter.servo.repository
import com.twitter.conversions.time._
import com.twitter.servo.cache._
import com.twitter.logging.Logger
import com.twitter.util.{Duration, Future, Return, Time, Throw, Try}
import scala.collection.mutable
import scala.util.Random
/**
@9len
9len / gist:2242038
Created March 29, 2012 18:55
A simple debug TProtocol
import com.twitter.conversions.string._
import java.nio.ByteBuffer
import org.apache.thrift.protocol._
import org.apache.thrift.transport.TTransport
import scala.collection.mutable
object ThriftDebugProtocol {
val Tab = " "
val KeyValueDelim = " = "
val NewLine = "\n"