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
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc | |
index e26b400..9618933 100644 | |
--- a/lib/asan/asan_linux.cc | |
+++ b/lib/asan/asan_linux.cc | |
@@ -39,7 +39,7 @@ | |
#include <sys/link_elf.h> | |
#endif | |
-#if SANITIZER_ANDROID || SANITIZER_FREEBSD | |
+#if SANITIZER_ANDROID || SANITIZER_FREEBSD || SANITIZER_NONGNU |
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 ubuntu:14.04 | |
RUN apt-get update && apt-get install -y curl build-essential git mercurial upx | |
RUN curl -sSL https://golang.org/dl/go1.4.src.tar.gz | tar -v -C /usr/local -xz | |
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1 | |
ENV GOPATH /go | |
ENV PATH /usr/local/go/bin:$PATH | |
ENV PATH /go/bin:$PATH |
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
# usage: | |
# docker build -t aws https://gist.github.com/d61df9109ed716e1d8b7.git | |
# alias dr='docker run -ti --rm -w $PWD -v $PWD:$PWD -v $HOME:$HOME -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -u $(id -u):$(id -g)' | |
# alias aws='dr aws aws' | |
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install -y python3-pip git jq curl && pip3 install awscli | |
RUN mkdir /data && chown nobody /data |
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
package main | |
import "reflect" | |
func main() {} | |
var types = map[reflect.Kind]reflect.Type{ | |
reflect.Bool: reflect.ValueOf(bool(false)).Type(), | |
reflect.Int: reflect.ValueOf(int(0)).Type(), | |
reflect.Int8: reflect.ValueOf(int8(0)).Type(), |
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
# syntax = docker/dockerfile:experimental | |
# Build with DOCKER_BUILDKIT=1 while support for caching features is not 'on by default' in Docker. | |
FROM ubuntu:18.04 | |
ENV STACK_VERSION=1.9.3 STACK_SHA256SUM=c9bf6d371b51de74f4bfd5b50965966ac57f75b0544aebb59ade22195d0b7543 | |
RUN wget --no-verbose https://github.com/commercialhaskell/stack/releases/download/v${STACK_VERSION}/stack-${STACK_VERSION}-linux-x86_64-static.tar.gz \ | |
&& echo ${STACK_SHA256SUM} stack-${STACK_VERSION}-linux-x86_64-static.tar.gz | sha256sum --check --strict \ | |
&& tar \ |
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
hub: | |
image: selenium/hub | |
ports: | |
- "127.0.0.1:4444:4444" | |
chrome: | |
image: selenium/node-chrome-debug | |
links: [hub] | |
external_links: | |
- myapplication_frontend_1:pdftables |
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/sh | |
COREOS_CHANNEL=stable | |
BASE=http://$COREOS_CHANNEL.release.core-os.net/amd64-usr | |
AWS_REGION=eu-west-1 | |
COREOS_VERSION=$(curl -s $BASE/current/version.txt | sed -n 's/COREOS_VERSION=//p') | |
parse_ami() { | |
jq -r ".amis | map(select(.name == \"$AWS_REGION\")) | .[].hvm" | |
} |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
docker "github.com/fsouza/go-dockerclient" | |
) |
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
token := make(chan struct{}, 1) | |
token <- struct{}{} // A goroutine must have the token to print | |
for test := range readTests(os.Stdin) { | |
gate <- struct{}{} | |
next := make(chan struct{}, 1) // where to send the token to. | |
go func(test Test, in, out chan struct{}) { | |
defer func() { <-gate }() | |
// Asynchronous work. |
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
# Build with: | |
# docker build -t race-build-failure https://gist.github.com/7b8c73a84b4c5bef5ce107fe009eb8d8.git | |
FROM golang:1.7rc1-alpine | |
RUN apk add --no-cache musl-dev gcc | |
WORKDIR /go/src/testrace | |
RUN echo $'package main\nfunc main() {}' > main.go |
NewerOlder