Skip to content

Instantly share code, notes, and snippets.

View simonjohansson's full-sized avatar

Simon Johansson simonjohansson

View GitHub Profile
##### AUTOCREATED BY KIAUH #####
[include kiauh.cfg]
# This file contains common pin mappings for Sovol Sv01 printer. To
# use this config, the firmware should be compiled for the AVR
# atmega2560.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: ar54
##### AUTOCREATED BY KIAUH #####
[include kiauh.cfg]
# This file contains common pin mappings for Sovol Sv01 printer. To
# use this config, the firmware should be compiled for the AVR
# atmega2560.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: ar54
Logs from gorouter
In proxy.ServeHTTP
Request: &{GET / HTTP/1.1 1 1 map[Accept:[*/*] Forwarded:[for=172.21.27.221; proto=http] X-Forwarded-Proto:[http] X-Forwarded-For:[172.21.27.221] True_client_ip:[172.21.27.221] X-Cf-Requestid:[874ed33a-c361-4946-74c3-c18b693ade7e] User-Agent:[curl/7.43.0]] 0xbb2730 0 [] false cf-env.test.cf.springer-sbm.com map[] map[] <nil> map[] 10.230.31.8:43597 / <nil>}
X-Forwarded-For before newReverseProxy.ServeHTTP: 172.21.27.221
In net/http/httputil/reverseproxy.go: ServeHTTP
X-Forwarded-For in req before 'If we aren't the first proxy retain prior': 172.21.27.221
X-Forwarded-For in outreq: 172.21.27.221, 10.230.31.8
X-Forwarded-For in req after 'If we aren't the first proxy retain prior': 172.21.27.221, 10.230.31.8
Done in net/http/httputil/reverseproxy.go: ServeHTTP
X-Forwarded-For after newReverseProxy.ServeHTTP: 172.21.27.221, 10.230.31.8
diff --git a/proxy/proxy.go b/proxy/proxy.go
index 1bd8f20..8dec23a 100644
--- a/proxy/proxy.go
+++ b/proxy/proxy.go
@@ -2,18 +2,18 @@ package proxy
import (
"errors"
+ "fmt"
+ "github.com/cloudfoundry/dropsonde"
Director task 35
# Logfile created on 2014-09-16 18:52:04 +0000 by logger.rb/31641
I, [2014-09-16T18:52:04.813669 #1555] INFO -- : Director Version : 1.2710.0
I, [2014-09-16T18:52:04.813704 #1555] INFO -- : Enqueuing task: 35
I, [2014-09-16T18:52:06.999852 #23095] [0x136f078] INFO -- : Looking for task with task id 35
D, [2014-09-16T18:52:07.000884 #23095] [0x136f078] DEBUG -- : (0.000632s) SELECT * FROM "tasks" WHERE "id" = 35
I, [2014-09-16T18:52:07.002730 #23095] [0x136f078] INFO -- : Starting task: 35
I, [2014-09-16T18:52:07.002938 #23095] [task:35] INFO -- : Creating job
D, [2014-09-16T18:52:07.003237 #23095] [task:35] DEBUG -- : (0.000136s) SELECT * FROM "tasks" WHERE "id" = 35

Keybase proof

I hereby claim:

  • I am simonjohansson on github.
  • I am simonjohansson (https://keybase.io/simonjohansson) on keybase.
  • I have a public key whose fingerprint is F53F 72A5 2083 F87E 6703 57FB 0969 E317 EF26 BFE1

To claim this, I am signing this object:

@simonjohansson
simonjohansson / gist:9248935
Created February 27, 2014 12:11
uaa cf 160
HTTP Status 500 - Servlet.init() for servlet spring threw exception
type Exception report
message Servlet.init() for servlet spring threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
>>>
REQUEST: GET http://api.cf1.test.i.mydomain.com/v2/routes?inline-relations-depth=1
REQUEST_HEADERS:
Accept : application/json
Authorization : [PRIVATE DATA HIDDEN]
Content-Length : 0
RESPONSE: [200]
RESPONSE_HEADERS:
content-length : 6369
content-type : application/json;charset=utf-8
Really delete route env.cf1.test.i.mydomain.com?> Deleting route env.cf1.test.i.mydomain.com...
REQUEST:
GET /v2/domains?inline-relations-depth=1&q=name%3Acf1.test.i.mydomain.com HTTP/1.1
Host: api.cf1.test.i.mydomain.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.0.0-6bb57fe / linux