I hereby claim:
- I am igm on github.
- I am igm (https://keybase.io/igm) on keybase.
- I have a public key ASC_hTOHTssxZog8lFsDd7S0oKhTucI6lVrRR_sQu6UsdQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
PASS | |
ok github.com/igm/sockjs-go/sockjs 0.186s | |
PASS | |
ok github.com/igm/sockjs-go/sockjs 0.188s | |
PASS | |
ok github.com/igm/sockjs-go/sockjs 0.188s | |
PASS | |
ok github.com/igm/sockjs-go/sockjs 0.193s | |
PASS | |
ok github.com/igm/sockjs-go/sockjs 0.186s |
#!/usr/bin/env bash | |
cd app | |
./<your_binary> |
#!/usr/bin/env bash | |
(cd app && python -m SimpleHTTPServer $PORT) |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
@WebServlet(value="/errTest", name="err-test") | |
public class Servlet extends HttpServlet { | |
private static final long serialVersionUID = 1L; |
package test; | |
import java.io.OutputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
public class Main { | |
public static void main(String args[]) { | |
ServerSocket sock; | |
String port = System.getenv("VCAP_APP_PORT"); |
2014-08-08T10:32:08.00+0100 [API] OUT Updated app with guid 23b826c6-8d40-47ed-a471-e21ffc09b7ae ({"state"=>"STARTED"}) | |
2014-08-08T10:33:00.96+0100 [API] OUT App instance exited with guid 23b826c6-8d40-47ed-a471-e21ffc09b7ae payload: {"cc_partition"=>"default", "droplet"=>"23b826c6-8d40-47ed-a471-e21ffc09b7ae", "version"=>"81f031e8-cf33-45d1-8167-6119c8772b13", "instance"=>"7e824fbb43b243268f450b0c41905d55", "index"=>0, "reason"=>"CRASHED", "exit_status"=>148, "exit_description"=>"app instance exited", "crash_timestamp"=>1407490380} | |
2014-08-08T10:34:34.71+0100 [API] OUT App instance exited with guid 23b826c6-8d40-47ed-a471-e21ffc09b7ae payload: {"cc_partition"=>"default", "droplet"=>"23b826c6-8d40-47ed-a471-e21ffc09b7ae", "version"=>"81f031e8-cf33-45d1-8167-6119c8772b13", "instance"=>"07b8acba13144b0894fc15a3bf5eeea6", "index"=>0, "reason"=>"CRASHED", "exit_status"=>148, "exit_description"=>"app instance exited", "crash_timestamp"=>1407490474} | |
2014-08-08T10:35:14.32+0100 [API] OUT App instanc |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"os" | |
"time" |
package main | |
import "time" | |
func main() { | |
ch := make(chan bool) | |
go func() { | |
// e.g. do some unpredictable long socket read | |
<-time.After(2 * time.Second) | |
ch <- true |
// Simple request-reply broker | |
// | |
// Author: Brendan Mc. | |
// Requires: http://github.com/alecthomas/gozmq | |
package main | |
import ( | |
zmq "github.com/alecthomas/gozmq" | |
) |