Skip to content

Instantly share code, notes, and snippets.

View rpt's full-sized avatar
🤘

Krzysztof Rutka rpt

🤘
View GitHub Profile
defmodule Mumbling do
def accum(s) do
accum(String.graphemes(s), 1, [])
end
defp accum([], n, acc) do
acc
|> Enum.reverse()
|> Enum.join("-")
trait InfiniteTimeout {
implicit val infiniteTimeout: Timeout = Timeout(Duration(21474835, "seconds"))
}
@rpt
rpt / create.sh
Last active September 1, 2016 13:59
ulimit El Capitan
touch /Library/LaunchDaemons/limit.maxfiles.plist
touch /Library/LaunchDaemons/limit.maxproc.plist
chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
chmod 0644 /Library/LaunchDaemons/limit.maxfiles.plist
chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist
chmod 0644 /Library/LaunchDaemons/limit.maxproc.plist
@rpt
rpt / dark_souls_3.md
Last active August 16, 2016 13:39
Dark Souls III checklist

Dark Souls III

Bosses

  • Iudex Gundyr
  • Vordt of the Boreal Valley
  • Curse-rotted Greatwood
  • Crystal Sage
  • Deacons of the Deep
  • High Lord Wolnir
import akka.actor.{Actor, ReceiveTimeout, Stash}
import scala.concurrent.duration.Duration
class A extends Actor with Stash {
// calling with become/Stash
def receive = {
case m: Int =>
context.actorSelection("/user/echo") ! Echo.Request(m)
import akka.actor.{ActorRef, ActorSystem}
import akka.dispatch.{Envelope, MailboxType, MessageQueue, ProducesMessageQueue}
class MyMailbox extends MailboxType with ProducesMessageQueue[MyMailbox.MyMessageQueue] {
def create(owner: Option[ActorRef], system: Option[ActorSystem]): MessageQueue = ???
}
object MyMailbox {
// Run scalastyle linter with compile
lazy val scalaStyle = taskKey[Unit]("scalaStyle")
scalaStyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) <<= (compile in Compile) dependsOn scalaStyle
Introducing modern Java stack to a large scale, multi-technology distributed system.
It appears that this may be a homepage or an index page with non-article content. To accurately view it, you may want to switch to the Full Web Page view.
If you know there should be an article here, help improve the article parser by reporting this page. Thanks!
Why would a company want to introduce new technology - and in particular a modern Java stack - to a well run, scalable infrastructure with full-fledged SOA?
We made this exact decision at Base Lab at a point when our product already comprised over 80 microservices running on approx. 380 EC2 instances and when we had been pushing new code to production about 50 times each day. A bit of context is necessary to understand the reasoning behind this choice. So let’s put things into perspective.