Skip to content

Instantly share code, notes, and snippets.

@Raymond26
Raymond26 / gist:8e9f8948f80f07cf50ce063e9387c1f9
Created June 28, 2016 21:54
mediastreamvalidator output for Apple-provided sample .m3u8 playlist
mediastreamvalidator http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8
mediastreamvalidator: Version 1.2(160525)
[/iphone/samples/bipbop/bipbopall.m3u8] Started root playlist download
[gear2/prog_index.m3u8] Started media playlist download
[gear1/prog_index.m3u8] Started media playlist download
[gear4/prog_index.m3u8] Started media playlist download
[gear3/prog_index.m3u8] Started media playlist download
[gear1/prog_index.m3u8] parsed media segment count: 29, duration: 300.000
[gear2/prog_index.m3u8] parsed media segment count: 29, duration: 300.000
override protected def server = new EmbeddedHttpServer(
stage = Stage.PRODUCTION,
twitterServer = new BackendServer {
override val overrideModules = Seq(PostgresTestDBModule)
},
verbose = false
)
implicit val tc = new TestContext(
injector.instance[MembersPostgresComponent]
2015-10-08 11:24:31,413 INF LineupControllerTest$$anon$1 Process started
W 1008 18:24:31.413 THREAD169: Multiple com.twitter.app.App main methods called. com.cutesy.controllers.PetControllerTest$$anon$1, then com.cutesy.controllers.LineupControllerTest$$anon$1
2015-10-08 11:24:31,440 INF HikariDataSource postgresql - is starting.
2015-10-08 11:24:31,451 INF LineupControllerTest$$anon$1 Resolving Finagle clients before warmup
2015-10-08 11:24:31,451 INF LineupControllerTest$$anon$1 Done resolving clients: [zipkin-tracer, httpClient].
2015-10-08 11:24:31,460 INF LineupControllerTest$$anon$1 Warming up.
2015-10-08 11:24:31,463 INF LineupControllerTest$$anon$1 http server started on port: 63658
2015-10-08 11:24:31,463 INF LineupControllerTest$$anon$1 Enabling health endpoint on port 63653
2015-10-08 11:24:31,463 INF
@Raymond26
Raymond26 / gist:c9305f6dfce4dbc963d3
Created October 8, 2015 18:19
Finatra test output
2015-10-08 11:17:57,879 INF CutesyFeatureTest$$anon$1 Process started
W 1008 18:17:57.879 THREAD200: Multiple com.twitter.app.App main methods called. com.cutesy.controllers.CutesyFeatureTest$$anon$1, then com.cutesy.controllers.CutesyFeatureTest$$anon$1
2015-10-08 11:17:57,900 INF HikariDataSource postgresql - is starting.
2015-10-08 11:17:57,906 DEB MessageBodyModule$ Configuring MessageBodyManager
2015-10-08 11:17:57,908 INF CutesyFeatureTest$$anon$1 Resolving Finagle clients before warmup
2015-10-08 11:17:57,909 INF CutesyFeatureTest$$anon$1 Done resolving clients: [zipkin-tracer, httpClient].
2015-10-08 11:17:57,915 INF CutesyFeatureTest$$anon$1 Warming up.
2015-10-08 11:17:57,915 INF HttpRouter Adding routes
GET /members
GET /ping
@Raymond26
Raymond26 / gist:c5939805811a8ff77c49
Created October 8, 2015 18:18
Finatra test output
2015-10-08 11:17:57,879 INF CutesyFeatureTest$$anon$1 Process started
W 1008 18:17:57.879 THREAD200: Multiple com.twitter.app.App main methods called. com.cutesy.controllers.CutesyFeatureTest$$anon$1, then com.cutesy.controllers.CutesyFeatureTest$$anon$1
2015-10-08 11:17:57,900 INF HikariDataSource postgresql - is starting.
2015-10-08 11:17:57,906 DEB MessageBodyModule$ Configuring MessageBodyManager
2015-10-08 11:17:57,908 INF CutesyFeatureTest$$anon$1 Resolving Finagle clients before warmup
2015-10-08 11:17:57,909 INF CutesyFeatureTest$$anon$1 Done resolving clients: [zipkin-tracer, httpClient].
2015-10-08 11:17:57,915 INF CutesyFeatureTest$$anon$1 Warming up.
2015-10-08 11:17:57,915 INF HttpRouter Adding routes
GET /members
GET /ping
Explore books: /v1/explore/books
{
"featuredStacks" : [
{
"id" : 1,
"creator" : "New York Times",
"name" : "Best Sellers of 2014",
"picture" : "asdfal.jpg",
"bookCount" : "10"
@Raymond26
Raymond26 / gist:5825878
Last active December 18, 2015 18:29
Play Framework Java example of an asynchronous GET request to a web service.
package controllers;
import java.util.Calendar;
import java.util.TimeZone;
import org.apache.commons.codec.digest.DigestUtils;
import play.libs.F.Function;
import play.*;
import play.libs.WS;