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
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
➜ 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
$ 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
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
#!/bin/bash | |
cat /etc/resolv.conf | boot2docker ssh "cat > /etc/resolv.conf" |
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
Foobar foobar = new FoobarBuilder() | |
.someFooThing(17) | |
.aBarField("hello world") | |
.build(); | |
String json = mapper.writeValueAsString(foobar); | |
out.println(json); |
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
@AutoMatter | |
interface Foobar { | |
// ... | |
static FoobarBuilder builder() { | |
return new FoobarBuilder(); | |
} | |
} |
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
#!/bin/bash | |
if [ $# -gt 0 ]; then | |
echo | |
echo Removing trailing whitespace in $1 | |
echo | |
find $1 -type f -iname '*.[hm]' -exec gsed -i 's/[[:space:]]*$//' '{}' ';' | |
else | |
echo | |
echo Usage: | |
echo remove-trailing-whitespace [target-dir] |
OlderNewer