Skip to content

Instantly share code, notes, and snippets.

View asnare's full-sized avatar

Andrew Snare asnare

View GitHub Profile
def bufferToString(input: ByteBuffer, charset: Charset): String =
if (input.hasArray)
new String(input.array(), input.arrayOffset(), input.limit(), charset)
else
bufferToString(ByteBuffer.allocate(input.limit())
.put(input)
.flip().asInstanceOf[ByteBuffer], charset)
@asnare
asnare / gist:33005bf97b24fea999054e8eadf4d9e9
Created March 14, 2017 13:39
Sauce Connect Proxy 4.4.4 crash, macOS 10.12.3
14 Mar 13:18:44 - Sauce Connect 4.4.4, build 3441 32c94cc -n -dirty
14 Mar 13:18:44 - Using CA certificate verify path /etc/ssl/certs.
14 Mar 13:18:44 - Starting up; pid 21358
14 Mar 13:18:44 - Command line arguments: sc --no-proxy-caching
14 Mar 13:18:44 - Log file: /var/folders/xx/xxxxxxxxxxxxxxxxxxxxxxxxx/T/sc.log
14 Mar 13:18:44 - Pid file: /tmp/sc_client.pid
14 Mar 13:18:44 - Timezone: CET GMT offset: 1h
14 Mar 13:18:44 - Using no proxy for connecting to Sauce Labs REST API.
14 Mar 13:18:45 - Started scproxy on port 49297.
14 Mar 13:18:45 - Please wait for 'you may start your tests' to start your tests.