Skip to content

Instantly share code, notes, and snippets.

@ybr
ybr / gist:a8daa4a6f92613559e07
Created June 5, 2015 09:02
Check client/server connectivity
Stop the service listening on the specific port. Make a server listen on the specified port number by running
```bash
netcat -luv port
```
From a remote host run
```bash
echo "test" | netcat -vu ip port
```
@ybr
ybr / build.sbt
Created May 15, 2015 12:22
logback
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.9"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.2"
@ybr
ybr / ws-nginx.conf
Created February 24, 2015 20:30
Log WS communications
logger.com.ning.http.client=DEBUG
logger.play.api.libs.ws=DEBUG
@ybr
ybr / plugins.sbt
Created February 2, 2015 15:10
Usefull SBT plugins (assembly + dependency graph)
// Let us assemble the project into a runnable JAR
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.12.0")
// Let us see the tree of depencies usefull in case of conflicts
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
@ybr
ybr / bonecp.conf
Created January 19, 2015 21:57
Log SQL statement with Playframework
db.default.logStatements=true
logger.com.jolbox.bonecp=DEBUG