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
# The MIT License | |
# SPDX short identifier: MIT | |
# Further resources on the MIT License | |
# Copyright 2017 Denis Gladkikh (https://www.outcoldman.com/en/archive/2017/07/19/dbhist/) | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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:18.04 | |
# skip installing gem documentation | |
RUN set -eux; \ | |
mkdir -p /usr/local/etc; \ | |
{ \ | |
echo 'install: --no-document'; \ | |
echo 'update: --no-document'; \ | |
} >> /usr/local/etc/gemrc |
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 * as tracer from 'dd-trace'; | |
import * as opentracing from 'opentracing'; | |
import { InterceptingCall } from 'grpc'; | |
const TRACE_HEADER = 'x-datadog-trace-id'; | |
const PARENT_HEADER = 'x-datadog-parent-id'; | |
export default function gRPCInterceptor(options, nextCall) { | |
return new InterceptingCall(nextCall(options), { | |
start: (metadata, _listener, next) => { |
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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
type Room struct { |
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
commit c8ef5485f93636fd3bdef74de19c96471452d66e | |
Author: Erik Benoist <ebenoist@gmail.com> | |
Date: Tue Oct 25 15:26:23 2016 -0500 | |
Makes the compiler compatible with protoc version 3 | |
diff --git a/Rakefile b/Rakefile | |
index 8df9895..bda79e4 100644 | |
--- a/Rakefile | |
+++ b/Rakefile |
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# | |
# This file was generated by Bundler. | |
# | |
# The application 'protoc-gen-ruby2' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require "pathname" |
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 com.google.protobuf.Descriptors; | |
import org.apache.spark.sql.types.DataType; | |
import org.apache.spark.sql.types.DataTypes; | |
import org.apache.spark.sql.types.StructField; | |
import org.apache.spark.sql.types.StructType; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ProtoToStruct { |
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 ( | |
"errors" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
"github.com/nsqio/go-nsq" |
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
$ curl nsqlookupd1.local:4161/nodes?topics=clicks | |
{ | |
"status_code": 200, | |
"status_txt": "OK", | |
"data": { | |
"producers": [ | |
{ | |
"remote_address": "127.0.0.1:17418", | |
"hostname": "box1", | |
"broadcast_address": "127.0.0.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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
"time" | |
) | |
func main() { |
NewerOlder