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
FROM nimmis/java:openjdk-8-jdk | |
MAINTAINER yujikiriki | |
# expose spark ports | |
EXPOSE 8080 | |
EXPOSE 7077 | |
EXPOSE 8081 | |
EXPOSE 6066 | |
WORKDIR /usr/local |
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
private def query( ): Future[ List[ JsObject ] ] = { | |
val group: Group = Group( BSONString( "$order.year" ) )( ("total", SumField( "value" )) ) | |
val pipeline: Seq[ PipelineOperator ] = Seq( group ) | |
val command: Future[ Stream[ BSONDocument ] ] = db.command( Aggregate( "opportunities", pipeline ) ) | |
command map { | |
c => | |
c.toList map { | |
d => | |
toJSON( d ).asInstanceOf[ JsObject ] | |
} |
./zookeeper/bin/zkServer.sh start-foreground ./zookeeper/bin/zkCli.sh -server 127.0.0.1:2181
sudo ./mesos/build/bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/tmp/mesos --zk=zk://127.0.0.1:2181/mesos/master --advertise_ip=127.0.0.1 --advertise_port=5050 --quorum=1 sudo ./mesos/build/bin/mesos-slave.sh --master=127.0.0.1:5050
git submodule update --init --recursive
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
Verifying that +yujikiriki is my blockchain ID. https://onename.com/yujikiriki |
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
# If you change this file, run 'update-grub' afterwards to update | |
# /boot/grub/grub.cfg. | |
# For full documentation of the options in this file, see: | |
# info -f grub -n 'Simple configuration' | |
GRUB_DEFAULT=0 | |
#GRUB_HIDDEN_TIMEOUT=0 | |
GRUB_HIDDEN_TIMEOUT_QUIET=true | |
GRUB_TIMEOUT=2 | |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` |
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
akka.actor{ | |
creation-timeout = 20s | |
default-dispatcher { | |
throughput = 20 | |
executor = "fork-join-executor" | |
fork-join-executor { | |
parallelism-min = 16 | |
parallelism-factor = 2.0 | |
parallelism-max = 16 | |
} |
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 shapeless.syntax.std.tuple._ | |
val optionTuple = (Some(Event("Jeff", 1)), None, None, Some(Event("Son", 1))) | |
println(s"optionTuple = $optionTuple") | |
val out = optionTuple.filter[Some[Event]] | |
println(s"out = $out") | |
case class Event(a: String, b: Int) |
I hereby claim:
- I am yujikiriki on github.
- I am yujikiriki (https://keybase.io/yujikiriki) on keybase.
- I have a public key ASCzjlVMePkNkA2V5fyIpkxTQKC7uL3Ofn1bv3zrzlDiIQo
To claim this, I am signing this object: