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
01:53:23.823 WARN TemporaryJobs.java:272 - Exception processing file /tmp/junit5199216890486863256/helios-agents | |
java.nio.file.FileSystemException: /tmp/junit5199216890486863256/helios-agents: Is a directory | |
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[na:1.7.0_51] | |
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.7.0_51] | |
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[na:1.7.0_51] | |
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[na:1.7.0_51] | |
at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[na:1.7.0_51] | |
at java.nio.channels.FileChannel.open(FileChannel.java:334) ~[na:1.7.0_51] | |
at com.spotify.helios.testing.JobPrefixFile.tryFromExistingFile(JobPrefixFile.java:90) ~[classes/:na] | |
at com.spotify.helios.testing.TemporaryJobs.removeOldJobs(TemporaryJobs.java:238) [classes/:na] |
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
$ git clone https://github.com/spotify/helios | |
Cloning into 'helios'... | |
remote: Counting objects: 1618, done. | |
remote: Compressing objects: 100% (771/771), done. | |
remote: Total 1618 (delta 629), reused 1202 (delta 458) | |
Receiving objects: 100% (1618/1618), 484.54 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (629/629), done. | |
Checking connectivity... done | |
$ cd helios | |
$ mvn clean package -DskipTests |
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
➜ docker git:(master) git co v1.0.0 | |
Note: checking out 'v1.0.0'. | |
You are in 'detached HEAD' state. You can look around, make experimental | |
changes and commit them, and you can discard any commits you make in this | |
state without impacting any branches by performing another checkout. | |
If you want to create a new branch to retain commits you create, you may | |
do so (now or later) by using -b with the checkout command again. Example: |
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
require "formula" | |
class Docker < Formula | |
homepage "http://docker.io" | |
url "https://github.com/dotcloud/docker.git", :tag => "v1.0.0" | |
option "without-completions", "Disable bash/zsh completions" | |
depends_on "go" => :build |
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 b00ab1a369c87e2cdcc29f178a337a20bf7fb07b Mon Sep 17 00:00:00 2001 | |
From: Daniel Norberg <dano@spotify.com> | |
Date: Thu, 12 Jun 2014 19:55:42 -0400 | |
Subject: [PATCH] fix building on macosx | |
--- | |
pkg/libcontainer/namespaces/nsenter.go | 133 +-------------------------------- | |
1 file changed, 2 insertions(+), 131 deletions(-) | |
diff --git a/pkg/libcontainer/namespaces/nsenter.go b/pkg/libcontainer/namespaces/nsenter.go |
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 org.cliffc.high_scale_lib.NonBlockingHashMap; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
public class NonBlockingHashMapTest { | |
static class Progress extends Thread { | |
public volatile long operations; | |
public void run() { |
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
#include <string.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
#include <zmq.h> | |
#define TOPIC "foobarfoobarfoobarfoobarfoobar" | |
int main (int argc, const char * argv[]) | |
{ |
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
#include <unistd.h> | |
#include <zmq.h> | |
int main (int argc, const char * argv[]) | |
{ | |
void *ctx = zmq_init (1); | |
void *pub = zmq_socket (ctx, ZMQ_PUB); | |
zmq_bind (pub, "tcp://*:4711"); |
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
# | |
# Dependencies: pssh, pdsh, cssh | |
# | |
# Under ~/.pssh/ I keep lists of hosts, one cluster per file, one hostname per line. | |
# | |
alias mssh='f() { hosts=$1; shift; for h in $(cat ~/.pssh/$hosts); do ssh $h $@ ; done }; f' | |
# auto-generate aliases for common host groups | |
for hostlist in $(ls ~/.pssh/); do |
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 re | |
from datetime import timedelta | |
def parseTimeDelta(s): | |
"""Create timedelta object representing time delta | |
expressed in a string. | |
""" | |
if s is None: | |
return None | |
d = re.match( |