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
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
# --no-check-cerftificate was necessary for me to have wget not puke about https | |
curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
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
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
Thread.sleep(100000); | |
System.out.println("Goodbye, World!"); | |
} | |
} |
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 istio | |
import ( | |
"fmt" | |
"strings" | |
"github.com/micro/go-micro/registry" | |
"github.com/micro/go-micro/selector" | |
) |
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 com.wallstreetcn.flume.source.http; | |
import org.eclipse.jetty.alpn.ALPN; | |
import org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory; | |
import org.eclipse.jetty.http2.HTTP2Cipher; | |
import org.eclipse.jetty.http2.server.HTTP2ServerConnectionFactory; | |
import org.eclipse.jetty.server.*; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
import org.eclipse.jetty.servlet.ServletHolder; | |
import org.eclipse.jetty.util.ssl.SslContextFactory; |
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" | |
"sync" | |
) | |
func main() { | |
var wt sync.WaitGroup | |
wt.Add(2) |
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 "time" | |
var metrics chan string | |
const ( | |
THRESHOLD int = 100 | |
BUFFER_SIZE int = 1000 | |
) |
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 alpine:3.5 | |
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
RUN apk add --update ca-certificates openssl && update-ca-certificates | |
RUN apk add --update curl tcpdump | |
RUN apk add --update curl iftop | |
RUN apk add --update strace | |
RUN apk add --update tzdata | |
RUN apk add --update bash && rm -rf /var/cache/apk/* |
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
// zend_long.h | |
/* This is the heart of the whole int64 enablement in zval. */ | |
#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64) | |
# define ZEND_ENABLE_ZVAL_LONG64 1 | |
#endif | |
#ifdef ZEND_ENABLE_ZVAL_LONG64 | |
typedef int64_t zend_long; | |
#else | |
typedef int32_t zend_long; |