This file contains 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
* { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
span { | |
font-size: smaller; | |
} |
This file contains 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 org.smartjava.dw | |
import java.io.{File, FileInputStream} | |
import com.github.mtailor.srtdissector.SrtDissector | |
import scala.annotation.tailrec | |
import scala.collection.immutable.ListMap | |
import scala.io.Source | |
import scala.util.{Failure, Success} |
This file contains 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 handlers | |
import ( | |
"net/http" | |
"github.com/josdirksen/slackproxy/config" | |
"strings" | |
"net/url" | |
) | |
// Define a simple interface. Which provides access to the command that needs to be | |
// executed and the response writer, so that the handler can send information back. |
This file contains 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 handlers | |
import ( | |
"net/http" | |
"fmt" | |
"bytes" | |
"github.com/shirou/gopsutil/mem" | |
"github.com/shirou/gopsutil/host" | |
"io" | |
) |
This file contains 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 handlers | |
import ( | |
"io" | |
"net/http" | |
"fmt" | |
"github.com/fsouza/go-dockerclient" | |
"bytes" | |
"time" | |
"github.com/josdirksen/slackproxy/config" |
This file contains 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
FROM golang:latest | |
COPY src/ /go/src/ | |
COPY resources/config.json / | |
EXPOSE 9000 | |
# If external packages are needed, install them manually. Not needed if installed in the GOPATH | |
RUN go get github.com/fsouza/go-dockerclient && go install github.com/fsouza/go-dockerclient | |
RUN go get github.com/shirou/gopsutil && go install github.com/shirou/gopsutil | |
WORKDIR src |
This file contains 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 handlers | |
import ( | |
"io" | |
"net/http" | |
"fmt" | |
"github.com/fsouza/go-dockerclient" | |
"bytes" | |
"time" | |
"github.com/josdirksen/slackproxy/config" |
This file contains 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 main | |
import ( | |
"flag" | |
"github.com/josdirksen/slackproxy/config" | |
"github.com/josdirksen/slackproxy/handlers" | |
"log" | |
"net/http" | |
) |
This file contains 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
import AkkaTypedReceptionist.FirstService.{FirstServiceMsg1, FirstServiceMsg} | |
import AkkaTypedReceptionist.SecondService.{SecondServiceMsg1, SecondServiceMsg} | |
import AkkaTypedReceptionist.SenderService.{sendMessage, registerAddresses, SenderMsg} | |
import akka.typed.{ActorSystem, Props, ActorRef, PreStart} | |
import akka.typed.ScalaDSL._ | |
import akka.typed.patterns.Receptionist | |
import akka.typed.patterns.Receptionist._ | |
object AkkaTypedReceptionist extends App { |
This file contains 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
import java.io.{File, FileInputStream} | |
import java.security.KeyStore | |
import com.jayway.restassured.RestAssured | |
import com.jayway.restassured.config.SSLConfig | |
import com.jayway.restassured.http.ContentType | |
import com.jayway.restassured.response.Response | |
import org.apache.http.conn.ssl.{SSLConnectionSocketFactory, SSLSocketFactory} | |
import org.scalatest._ |
NewerOlder