This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.List.Types (List(..), (:)) | |
import Data.Maybe (Maybe(..)) | |
import Data.Tuple (Tuple(..)) | |
import Effect (Effect) | |
import Effect.Class.Console (logShow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
varnishadm vcl.list | grep '/cold' | awk '{print $4}' | parallel -j 1 varnishadm vcl.discard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Security] | |
EAP-Method=TTLS | |
# omit these 2 | |
#EAP-Identity=anonymous | |
#EAP-TTLS-CACert= | |
EAP-TTLS-Phase2-Method=Tunneled-PAP | |
EAP-TTLS-Phase2-Identity=<user id> | |
EAP-TTLS-Phase2-Password=<password> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"net/http" | |
"net" | |
"crypto/tls" | |
"golang.org/x/net/http2" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait CirceSupport { | |
import io.circe.jawn.decode | |
import akka.http.scaladsl.model.ContentTypes._ | |
implicit def unmarshaller[A: Decoder]: FromEntityUnmarshaller[A] = | |
Unmarshaller.stringUnmarshaller | |
.forContentTypes(`application/json`) | |
.flatMap { _ => _ => body => | |
decode[A](body) | |
.fold(Future.failed, Future.successful) |
I hereby claim:
- I am yaroot on github.
- I am yaroot (https://keybase.io/yaroot) on keybase.
- I have a public key whose fingerprint is 6307 BB40 B050 AA8F 7A1B 32B7 1F14 411C 4674 1209
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.annotation.JsonIgnore | |
import com.twitter.finagle.Stack.Params | |
import com.twitter.finagle.mux.{Request, Response} | |
import com.twitter.finagle.{Filter, Path, Service} | |
import com.twitter.io.Buf | |
import com.twitter.util.Future | |
import io.buoyant.linkerd.protocol.ThriftServerConfig | |
import io.buoyant.linkerd.{ClientConfig, ProtocolInitializer, RouterConfig} | |
import io.buoyant.linkerd._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object FinagleMysqlParameter { | |
implicit def wrapOption[A](value: Option[A])(implicit ev: CanBeParameter[A]): Parameter = { | |
value match { | |
case None => NullParameter | |
case Some(a) => Parameter.wrap(a) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emacs-bzr/ | |
pkg/ | |
src/ | |
*.tar.gz | |
*.tar.xz |
NewerOlder