- Application components systems can continue to use ApplicationLifecycle
- Can now also use CoordinatedShutdown if want richer API
- Suggest that we don't change ApplicationLifecycle API to expose phases (yet)
- Application can now create its own ApplicationLifecycle from the ActorSystem
- Calls ApplicationLifecycle.stop() during a phase of CS
- ApplicationLifecycle manages ordering (as suggested by Patrik)
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
// ==UserScript== | |
// @name Connections Categoriser | |
// @description Adds a category function to the NYT Connections game | |
// @match https://www.nytimes.com/games/connections | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.0 | |
// @grant none | |
// ==/UserScript== | |
// MIT License |
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/bash | |
# Copyright 2023 Rich Dougherty | |
# which-hunt - an alternative to 'which' that traces symlinks and shims | |
# - Examples - | |
# | |
# $ which java | |
# /usr/bin/java | |
# |
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
Tested with https://github.com/rbsec/sslscan v1.11.11 | |
===== Java 1.6.0_45 ===== | |
Testing SSL server localhost on port 9443 using SNI name localhost | |
TLS Fallback SCSV: | |
Server does not support TLS Fallback SCSV |
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 RequestFactory { | |
def createRequestHeader( | |
connection: RemoteConnection, | |
method: String, | |
target: RequestTarget, | |
version: String, | |
headers: Headers, | |
attrs: TypedMap): RequestHeader | |
} |
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 GreeterService { | |
... | |
} | |
object GreeterService extends GreeterServiceCompanion[GreeterService] { | |
override val name = "helloworld.GreeterService" | |
... | |
} | |
class GreeterServiceClient(channel: Channel, options: CallOptions)(implicit mat: Materializer, ex: ExecutionContext) extends GreeterService { |
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 Handler | |
trait HandlerOp[+A] | |
case class HandlerVal[+A](value: A) extends HandlerOp[A] | |
case class HandlerThunk[+A](thunk: () => A) extends HandlerOp[A] | |
case class HandlerFuture[+A](future: Future[A]) extends HandlerOp[A] | |
case class HandlerEither[+A,B<:A,C<:A](either: Either[B,C]) extends HandlerOp[A] | |
object Handler { | |
trait RequestHeader |
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
/* | |
* Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> | |
*/ | |
package play.it.http | |
import ch.qos.logback.classic.Logger | |
import ch.qos.logback.classic.spi.ILoggingEvent | |
import ch.qos.logback.core.AppenderBase | |
import org.slf4j.LoggerFactory | |
import org.specs2.execute.AsResult |
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
// Change DefaultHttpRequestHandler to take a pipeline | |
class DefaultHttpRequestHandler( | |
pipeline: Seq[Handler], | |
router: Router, | |
errorHandler: HttpErrorHandler, | |
configuration: HttpConfiguration, | |
filters: Seq[EssentialFilter]) extends HttpRequestHandler { | |
... | |
} |
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
mimaBinaryIssueFilters ++= { | |
def excludeSymbols[P <: ProblemRef]( | |
name: String, | |
symbolFilter: String => Boolean)( | |
implicit problemTag: ClassTag[P]): ProblemFilter = { | |
{ problem: Problem => | |
// Check the problem type | |
if (problemTag.runtimeClass.isAssignableFrom(problem.getClass)) { | |
// Check the problem name |
NewerOlder