- Mainboard: MSI Z370 GAMING PRO CARBON
- GPU (2x): Gigabyte GeForce GTX 1080
- CPU: Intel Core i5-8400
- CPU cooler: Scythe CPU Cooler Mugen 5 PCGH Edition
- RAM (4x): Crucial CT8G4DFS8266 8 GB
- Power supply: be quiet! Straight Power 11 PC ATX 750W
- SSD: Samsung MZ-75E500B/EU 850 EVO SSD 500GB
- Tower: be Quiet! Tower Silent Base 600 Black BG006
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 | |
# cool_gpu2.sh This script will enable or disable fixed gpu fan speed | |
# | |
# Description: A script to control GPU fan speed on headless (non-X) linux nodes | |
# Original Script by Axel Kohlmeyer <akohlmey@gmail.com> | |
# https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness | |
# | |
# Modified for newer drivers and removed old work-arounds |
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._ | |
import Scalaz._ | |
object MonadTransformerExamples { | |
def main(args: Array[String]) = run | |
def run { | |
// ------------------------------------------------------ | |
// Combined Option/Option | |
// ------------------------------------------------------ |
A list of Akka Persistence plugins is now maintained at http://akka.io/community/. Please edit this page to add a new plugin.
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
class BoundedMailboxDirectConsumer extends Actor with Consumer { | |
import akka.dispatch._ | |
import akka.util.duration._ | |
// Create a bounded mailbox for this consumer actor with a capacity of 10 | |
self.dispatcher = Dispatchers.newThreadBasedDispatcher(self, 5, 100.milliseconds) | |
// instruct how the route should be customized during route creation (definition) | |
onRouteDefinition { rd: RouteDefinition => | |
// on exception attempt max 3 redeliveries with a delay of 1000 ms |
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 java.nio.ByteBuffer | |
import java.util.concurrent.TimeUnit | |
import org.apache.kafka.clients._ | |
import org.apache.kafka.common.metrics.{MetricConfig, Metrics, MetricsReporter} | |
import org.apache.kafka.common.network.Selector | |
import org.apache.kafka.common.protocol.ApiKeys | |
import org.apache.kafka.common.record.{CompressionType, MemoryRecords} | |
import org.apache.kafka.common.requests.{ProduceRequest, RequestSend} | |
import org.apache.kafka.common.utils.SystemTime |
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 akka.actor._ | |
import akka.persistence._ | |
object EventsourcingExample extends App { | |
class EventsourcedProcessor extends Processor { | |
var events: List[Any] = Nil | |
var awaitStack: List[Actor.Receive] = Nil | |
def receive = { | |
case Persistent(event, _) if recoveryRunning ⇒ update(event) |
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 java.io.File | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.util.Timeout | |
import org.eligosource.eventsourced.core._ | |
import org.eligosource.eventsourced.journal.leveldb.LeveldbJournalProps |
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 example | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.pattern.ask | |
import akka.util.Timeout | |
object Parwrite extends App { |
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 class Order(id: Int = -1, details: String, | |
creditCardNumber: String, | |
creditCardValidation: Validation = Validation.Pending) | |
sealed trait Validation | |
object Validation { | |
case object Pending extends Validation | |
case object Success extends Validation | |
case object Failure extends Validation | |
} |
NewerOlder