Skip to content

Instantly share code, notes, and snippets.

Avatar

Ismael Juma ijuma

View GitHub Profile
View gist:2ea5c7a4a887a5dc5d61
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
JDK 7u80: 142 MB/s
JDK 8u60: 160 MB/s
OpenSSL: 431 MB/s
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
JDK 7u80: Not supported
JDK 8u60: 45 MB/s (it will improve once JDK-8046943 is done)
OpenSSL: 815 MB/s
View gist:b538d65fbbd0089d51b9
~/d/p/doobie git:master ❯❯❯ sbt clean test ✱ ◼
[info] Loading project definition from /Users/jumajuma/dev/projects/doobie/project
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
[info] Set current project to doobie (in build file:/Users/jumajuma/dev/projects/doobie/)
[warn] Credentials file /Users/jumajuma/.bintray/.credentials does not exist
[warn] Credentials file /Users/jumajuma/.bintray/.credentials does not exist
View gist:310294535796ebdf89cb
~/d/p/doobie git:master ❯❯❯ sbt clean test ✱ ◼
[info] Loading project definition from /Users/jumajuma/dev/projects/doobie/project
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /Users/jumajuma/.bintray/.credentials. Some bintray features depend on this.
[info] Set current project to doobie (in build file:/Users/jumajuma/dev/projects/doobie/)
[warn] Credentials file /Users/jumajuma/.bintray/.credentials does not exist
[warn] Credentials file /Users/jumajuma/.bintray/.credentials does not exist
View whatson
view-source:http://graffiti.internal.timeout.com/public/v1/sites/us-lasvegas/search?when=today&locale=en-US
{"meta":{"url":"http://graffiti.internal.timeout.com/public/v1/sites/us-lasvegas/search?when=today&locale=en-US","total_items":40,"page":{"number":1,"size":10,"next_url":"http://graffiti.internal.timeout.com/public/v1/sites/us-lasvegas/search?when=today&locale=en-US&page_number=2&page_size=10"},"sort":"relevance"},"body":[{"categorisation":{"primary":{"name":"Film","concept":{"name":"film genres"}},"secondary":{"name":"Drama","concept":{"name":"drama"}}},"uid":"Content-Film-156539","id":"156539","name":"Boyhood","description":"Looking at it one way, Boyhood represents a spectacularly cheap way of saving on actors’ salaries: To capture his rambling yet absorbing Texas family drama,...","type":"film","url":"http://graffiti.internal.timeout.com/public/v1/sites/us-lasvegas/films/156539?locale=en-US","has_offer":false,"image_url":"http://media.timeout.com/images/101611109/image.jpg","image":{"id":101611109,
View gist:c75a517d6b67969d8a28
method ValidationFlatMapDeprecated in object Validation is deprecated: flatMap does not accumulate errors, use `scalaz.\/` or `import scalaz.Validation.FlatMap._` instead
View gist:11261906
println("head: " + events.sortBy(d => d.importedAt.desc).map(_.importedAt).run.head)
println("firstOption: " + events.sortBy(d => d.importedAt.desc).map(_.importedAt).first)
println("run: " + events.map(_.importedAt).sortBy(_.desc).take(1).first)
Output in 2.1.0-M1:
head: 1394563161061
firstOption: 1394116251466
run: 1394563161061
In 2.0.1, all of them print "1394563161061"
View gist:11222642
object SolrClient {
object Response {
// This was fine in 2.10, but had to be renamed in 2.11
def apply[T](queryResponse: QueryResponse, page: Page)(documentsMapper: SolrDocument => T = identity[SolrDocument] _): Response[T] = ...
}
case class Response[T](
@ijuma
ijuma / gist:3972753
Created Oct 29, 2012
SBT hang with forked tests
View gist:3972753
Exception in thread "Thread-18" Exception in thread "main" java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2571)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:52)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:66)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
@ijuma
ijuma / gist:976802
Created May 17, 2011
IDEA JVM settings
View gist:976802
-Xms128m
-Xmx1024m
-server
-XX:MaxPermSize=250m
-ea
-XX:+TieredCompilation
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:ReservedCodeCacheSize=96m
View sbt 0.9 build error
[ijuma@localhost]~/src/xsbt% sbt update "project Launcher" proguard "project Simple Build Tool" "publish-local"
Getting Scala 2.7.7 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (11409kB/268ms)
Getting org.scala-tools.sbt sbt_2.7.7 0.7.4 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
15 artifacts copied, 0 already retrieved (4096kB/182ms)
[info] Recompiling project definition...
You can’t perform that action at this time.