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
{ | |
"namespace": "com.example.avro", | |
"type": "record", | |
"name": "AvroMessage", | |
"fields": [ | |
{"name": "id", "type": "string"}, | |
{"name": "message", "type": "string"}, | |
{"name": "note", "type": "string"} | |
] | |
} |
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
micronaut: | |
application: | |
name: micronaut-kafka-simple-producer-consumer | |
server: | |
port: 8081 | |
endpoints: | |
health: | |
sensitive: false |
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 | |
// http://cr.openjdk.java.net/~ohair/openjdk7/jdk7-build-copyright/webrev/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/v2_0/PerfDataBuffer.java-.html | |
// https://github.com/twitter/commons/blob/master/src/python/twitter/common/java/perfdata/builders/perfdata2.py | |
import ( | |
"fmt" | |
"errors" | |
"io/ioutil" | |
"encoding/binary" |
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
[Unit] | |
Description=ZooKeeper Service | |
Documentation=http://zookeeper.apache.org | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=forking | |
User=zookeeper | |
Group=zookeeper |
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
{ | |
"mappings": { | |
"logs": { | |
"dynamic": "false", | |
"_source": { | |
"excludes": [ | |
"*_" | |
] | |
}, | |
"properties": { |
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
Interval 5 | |
Hostname 1.1.1.1 | |
LoadPlugin cpu | |
LoadPlugin network | |
<Plugin network> | |
<Server "localhost" "1984"> | |
</Server> | |
</Plugin> |
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
{ | |
"cluster_name" : "elasticsearch-beta", | |
"nodes" : { | |
"y3q_T0UzQ2i_UyVmACqdSg" : { | |
"name" : "es-data-beta001.dom.example.com", | |
"transport_address" : "inet[/172.24.249.9:9300]", | |
"host" : "es-data-beta001", | |
"ip" : "172.24.249.9", | |
"version" : "1.5.2", | |
"build" : "62ff986", |
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 DefaultHttpClient createHttpClient() throws Exception { | |
// Some constants | |
final int timeout = 10000; | |
final int HTTP_PORT = 80; | |
final int HTTPS_PORT = 443; | |
final String HTTPS = "https"; | |
final String HTTP = "http"; | |
String keystoreName = "keystore"; | |
String keystoreType = "JKS"; | |
String keystorePass = "secret"; |
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
.idea | |
.vagrant |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder