Skip to content

Instantly share code, notes, and snippets.

View kanuku's full-sized avatar

Fernando Benjamin kanuku

View GitHub Profile
@kanuku
kanuku / gist:cd656d828c5f3cc69817
Last active September 3, 2015 11:32
Future does not get executed.
def saveApps(input: Seq[AppInfo]) = {
logger.info(s"Apps to save:" + input.size)
db.run(this.apps ++= input).map(_ => ())
}
def appInfos(): Future[Seq[AppInfo]] = {
logger.info("Searching")
@kanuku
kanuku / gist:7da7a54bf028c96a68a3
Last active August 29, 2015 14:25
Gediminas V2
dockerCommands ++= Seq(
Cmd("ADD", "scm-source.json" + " /"),
Cmd("RUN", "chmod a+x /opt/docker/bin/*"),
Cmd("USER", "root"),
Cmd("RUN", """curl -o /opt/docker/bin/gosu -sSL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" """),
Cmd("RUN", """curl -o /opt/docker/bin/gosu.asc -sSL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" """),
Cmd("RUN", "gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4"),
Cmd("RUN", "gpg --verify /opt/docker/bin/gosu.asc"),
Cmd("RUN", "rm /opt/docker/bin/gosu.asc"),
Cmd("RUN", "apt-get update"),
case class Author(name: String, email: String, links: List[Link])
case class Commit(id: String, message: String, parentId: List[String], author: Author, valid: Option[Boolean], links: List[Link])
@kanuku
kanuku / main.go
Created February 8, 2015 20:10
./main.go:22: INDEX_HTML declared and not used
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
var INDEX_HTML []byte