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
!WA:2!TJvE3TXvv8OOK0MjPfB54uYwrjaH4qiXvPojnKqRLTKJsKSugjxNwwSMLN08QhnZK3mJTLHcetiy2bZ(szruOqllfDGdqzphwoah4Cp(p6hG8riFc4(EZizz742uFcNch6)mE09Tn37VF3F37ZrE0yUYp4r7)O9hRwm9y6ZF)lQQOnPoZ2ziBtB25JgnAHO9F0bCIPzB5XSnnj6dzqn1zeRt70BoQRl1QA8K(vQ4g)qdZ8P695CFRWCbftfDQvFo7CLdWOexV(UHQntNWsgEYoDL0Ko7Skm94LSTn9OoSzYJZN4frnyMgS6HgAWivP2wLQ7qKRYS9DAemJI0zjBUHNT2ueMloH7o)Z3myKa)ksKirvrxQcTQKSRMIjjktrZdNP7jKD9uyEsQvOwuxdPK4F8KMZJrRwf3SDFqw4RxRHorfDe(HZoxQSfspw2KE8VefFMsI5CDiMMz0DLUHRVkzkILxrC20zAoXqdwS0eflnOCPK(4MR6yQuNWKTuQrCLKftv9CeftpJ2lTaJGlvUyHuzZUGVv4NGuO7MsVkXP7Ix2xHrIN230m(4gupYnPwEeMLI5JgefOnvS0mSzfSXbuhk1OLsjVGIfTMc3ZpbSJ0xNO4sk6HOBvpJ7c2tslBlYI6O)WNXeCVJ5sWaNU7C8PY9D4yjRPqTsdhfxaCmOF4bGe4F7DLwoavFXLXaAsTQyZcoDPMvyO)JNTINs0Bg8HMMBIFgQfhsovQrxuX3dnN3rGusHqAglKke96b)iGyS1gyGtwWnCLwWLywr4ZWrAW)2PblpPPTIEAvpe9T82PCnFKRjLeHnTDcdkjRzQ46YFlPlYM4VKaP3n7)cP1U0LV4iEdCPyAVW8jsI8UPtoC(XhfIEyNUB5G5YxA8Jnc(aZsA9ACzFll(G599G7cUByRrGTfbER4Nvfe0gIY0mjLNd3VIokAKOqpiMib7uc6vcUVDFq41FnyxWUXy6EH9jb3p8gG4W(H3mCq4ncVj4asWBrQPMTPFnRWn4W05 |
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 HealthCheckRoute { | |
implicit val healthCheckEncoder: Encoder[HealthCheck] = deriveEncoder[HealthCheck] | |
implicit def healthCheckEntityEncoder[F[_] : Sync]: EntityEncoder[F, HealthCheck] = jsonEncoderOf | |
def healthCheck[F[_] : Sync](service: HealthCheckService[F]): HttpRoutes[F] = { | |
val dsl = new Http4sDsl[F]() {} | |
import dsl._ |
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
case object ClusterDown | |
case class ClusterUp(status: String) | |
trait ElasticSearchService[F[_]] { | |
def clusterHealth: F[Either[ClusterDown.type, ClusterUp]] | |
} | |
object ElasticSearchService { | |
private[this] val log = getLogger.logger |
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
~ [ rm -rf .stack | |
~ [ stack install ghci | |
Writing implicit global project config file to: /home/alien/.stack/global-project/stack.yaml | |
Note: You can change the snapshot via the resolver field there. | |
Using latest snapshot resolver: lts-13.4 | |
Downloaded lts-13.4 build plan. | |
Preparing to install GHC (tinfo6) to an isolated location. | |
This will not interfere with any system-level installation. | |
Downloaded ghc-tinfo6-8.6.3. | |
Installed GHC. |
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
--- | |
# I install all necessary packages and configure Arch Linux. | |
- name: bootstrap Arch Linux | |
hosts: all | |
become: yes | |
vars: | |
my_username: alien | |
bootstrap_username: bootstrap |
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
/* Read messages background */ | |
.yO { | |
background: rgba(5,5,5,.65) !important; | |
color: #C9C9C9; | |
} | |
/* Message summary */ | |
.y2 { | |
color: #999; | |
} |