This file contains hidden or 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
| $packages = [ 'curl', 'terminator', 'jdk7-openjdk', 'chromium', 'virtualbox', 'git', 'zsh', 'networkmanager', 'network-manager-applet', 'ttf-dejavu', 'arandr', | |
| 'openssh', 'nm-applet', 'xscreensaver', 'volwheel' ] | |
| $yaourtPackages = [ 'vagrant', 'sublime-text', 'dropbox', 'oh-my-zsh-git', 'intellij-idea-13-community' ] | |
| $services = [ 'NetworkManager' ] | |
| $stoppedServices = [ 'netctl' ] | |
| package { $packages: | |
| ensure => installed |
This file contains hidden or 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
| libraryDependencies += "org.slf4j" % "slf4j-simple" % "1.7.5" |
This file contains hidden or 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
| > container:start | |
| 2013-09-17 17:16:03.485:INFO::Logging to STDERR via org.mortbay.log.StdErrLog | |
| [info] jetty-6.1.22 | |
| [info] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet | |
| SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
| SLF4J: Defaulting to no-operation (NOP) logger implementation | |
| SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
| [info] Started SelectChannelConnector@0.0.0.0:8080 | |
| [success] Total time: 0 s, completed 17-Sep-2013 17:16:03 | |
| > |
This file contains hidden or 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
| libraryDependencies += "org.mortbay.jetty" % "jetty" % "6.1.22" % "container" |
This file contains hidden or 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
| > container:start | |
| 2013-09-17 17:25:09.216:INFO::Logging to STDERR via org.mortbay.log.StdErrLog | |
| [info] jetty-6.1.22 | |
| [info] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet | |
| [pool-8-thread-4] INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation | |
| [pool-8-thread-4] INFO org.atmosphere.cpr.DefaultAnnotationProcessor - Found Annotation in atmo_demo.Searcher being scanned: interface org.atmosphere.config.service.ManagedService | |
| [pool-8-thread-4] INFO org.atmosphere.cpr.AnnotationHandler - Found Annotation in class atmo_demo.Searcher being scanned: interface org.atmosphere.config.service.ManagedService | |
| [pool-8-thread-4] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereHandler org.atmosphere.config.managed.ManagedAtmosphereHandler mapped to context-path: /search | |
| [pool-8-thread-4] INFO org.atmosphere.cpr.AtmosphereFramework - Installed the following AtmosphereInterceptor mapped to AtmosphereHandler |
This file contains hidden or 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
| @org.atmosphere.config.service.Message | |
| def onMessage(m: String) { | |
| org.slf4j.LoggerFactory.getLogger(classOf[Searcher]).info(s"Received message: $m") |
This file contains hidden or 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
| libraryDependencies += "com.typesafe.akka" % "akka-actor_2.10" % "2.2.0" |
This file contains hidden or 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
| package atmo_demo | |
| import org.atmosphere.config.service.{Disconnect, Ready, ManagedService} | |
| import org.atmosphere.cpr._ | |
| import akka.actor.{Props, ActorSystem, Actor} | |
| @ManagedService(path = "/search") | |
| class Searcher { | |
| private var factory: BroadcasterFactory = null | |
| private lazy val system: ActorSystem = ActorSystem.create("atmoDemo") |
This file contains hidden or 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
| seq(webSettings :_*) |
This file contains hidden or 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
| addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2") |