Skip to content

Instantly share code, notes, and snippets.

View nemosupremo's full-sized avatar

nemosupremo nemosupremo

View GitHub Profile
comment = React.createClass({
mixins: [React.addons.PureRenderMixin],
getDefaultProps: () ->
return {open:false, onToggle: (() -> )}
toggle: (event) ->
@props.onToggle(my_key_or_something)
render: () ->
FROM golang:1.4.1-wheezy
MAINTAINER ChannelMeter <product@channelmeter.com>
RUN go get github.com/miekg/dns
RUN go get github.com/mesosphere/mesos-dns
RUN cd $GOPATH/src/github.com/mesosphere/mesos-dns && go build -o /opt/mesos-dns
ENV MESOS_MASTERS mesos1:5050,mesos2:5050,mesos3:5050
ENV DNS_REFRESH_SECONDS 50
ENV DNS_TTL 60
{
"args": [],
"env":{
"MESOS_MASTERS":"10.129.196.31:5050",
"DNS_RESOLVERS":"10.129.196.28",
"DNS_TIMEOUT":"60",
},
"constraints": [
[
"hostname",
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: -webkit-linear-gradient(red, blue);
height:6000px
}
func (h *NumericHistogram) Quantile(q float64) float64 {
count := q * float64(h.total)
for i := range h.bins {
count -= float64(h.bins[i].count)
if count <= 0 {
return h.bins[i].value
}
}
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode):
"http-client-shared-209" #209 daemon prio=5 os_prio=0 tid=0x00007fd8740b6000 nid=0x67b9 waiting on condition [0x00007fd7c4d27000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000a9b62170> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
at org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:389)
at org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(QueuedThreadPool.java:531)
@ScalarFunction("msgpack_extract_map_i")
@SqlType(StandardTypes.BIGINT)
public static long intMsgpackExtract(@SqlType(StandardTypes.VARCHAR) Slice msg, @SqlType(StandardTypes.VARCHAR) Slice key)
{
try {
io.airlift.slice.BasicSliceInput in = msg.getInput();
System.out.println(bytesToHexString(in.slice().toByteBuffer().array())); // this returns 0x30783836613137356564613137366, expecting 0x86a175eda176...
TypeReference<Map<String, Object>> typeReference = new TypeReference<Map<String, Object>>(){};
Map<String, Object> xs = MSGPACK_FACTORY.readValue(msg.getInput(), typeReference);
Oct 9 16:06:42 master-01 marathon[20175]: [INFO] [10/09/2015 16:06:42.312] [marathon-akka.actor.default-dispatcher-8] [akka://marathon/user/$Me] Received health result: [Healthy(geard.b5b916ae-6df1-11e5-8632-00163e105035,2015-10-08T19:21:00.379Z,2015-10-09T16:06:42.312Z)]
Oct 9 16:06:51 master-01 mesos-master[11603]: 2015-10-09 16:06:51,508:11603(0x7f520d069700):ZOO_ERROR@handle_socket_error_msg@1643: Socket [10.129.196.11:2181] zk retcode=-7, errno=110(Connection timed out): connection to 10.129.196.11:2181 timed out (exceeded timeout by 3ms)
Oct 9 16:06:51 master-01 mesos-master[11603]: 2015-10-09 16:06:51,508:11603(0x7f520d069700):ZOO_INFO@check_events@1703: initiated connection to server [10.129.196.49:2181]
Oct 9 16:06:51 master-01 mesos-master[11603]: 2015-10-09 16:06:51,508:11603(0x7f520e06b700):ZOO_ERROR@handle_socket_error_msg@1643: Socket [10.129.196.11:2181] zk retcode=-7, errno=110(Connection timed out): connection to 10.129.196.11:2181 timed out (exceeded timeout by 4ms)
Oct 9 16:06:51 maste
This file has been truncated, but you can view the full file.
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,677] INFO Already running 1 instances of /elasticsearch. Not scaling. (mesosphere.marathon.SchedulerActions:538)
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,677] INFO Already running 1 instances of /jenkins. Not scaling. (mesosphere.marathon.SchedulerActions:538)
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,677] INFO Already running 1 instances of /mongo-mms-agent. Not scaling. (mesosphere.marathon.SchedulerActions:538)
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,677] INFO Already running 0 instances of /redis. Not scaling. (mesosphere.marathon.SchedulerActions:538)
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,678] INFO Already running 1 instances of /docker. Not scaling. (mesosphere.marathon.SchedulerActions:538)
Oct 13 17:38:23 master-01 marathon[16383]: [2015-10-13 17:38:23,679] INFO Already running 0 instances of /nginx. Not scaling. (mesosphere.marathon.SchedulerAc