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 config | |
trait ConfigurationKey[T] { | |
private[config] final def withConfig(rawConfig: Map[String, String]): Option[T] = read(rawConfig) | |
protected def read(cfg: Map[String, String]): Option[T] | |
} | |
abstract class ConfigurationHolder[Config[_]] { | |
protected def configMap: Map[String, String] | |
final def read[T](key: Config[T])(implicit ev: Config[T] <:< ConfigurationKey[T]): Option[T] = key.withConfig(configMap) |
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 scalaz.std.list._ | |
import zio.IO | |
import scalaz.{ Applicative, Monad } | |
import scala.util.Try | |
package object types{ | |
type ThrowableSafeResult[+T] = IO[Throwable, T] | |
implicit val ioMonadInstance: Monad[ThrowableSafeResult] = new Monad[ThrowableSafeResult] { |
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 zio.clock.Clock | |
import zio.console.Console | |
import zio.system.System | |
import zio.random.Random | |
import zio.blocking.Blocking | |
import com.typesafe.config.Config | |
import zio.Task | |
import com.typesafe.config.ConfigFactory | |
import scala.collection.JavaConverters |
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
# | |
# ASPack 2.29 unpacker via. Dynamic Analysis | |
# | |
$:.unshift("C:\\Lib\\metasm") | |
require 'metasm' | |
AS229_OEP_PUSH_OFFSET = 0x420 | |
def _msg(m, error = false) |