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 java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Map; | |
import java.util.Set; | |
public class ReusableHashMap<K, V> implements Map<K, V> { | |
private int size; | |
private ReusableEntry<K, V>[] entries; |
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
/** | |
* Copyright 2016 Ambud Sharma | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
/** Copyright 2013 Ambud Sharma | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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/flume-ng-core/src/main/java/org/apache/flume/source/SyslogSourceConfigurationConstants.java b/flume-ng-core/src/main/java/org/apache/flume/source/SyslogSourceConfigurationConstants.java | |
index 5a73c88..4b870ef 100644 | |
--- a/flume-ng-core/src/main/java/org/apache/flume/source/SyslogSourceConfigurationConstants.java | |
+++ b/flume-ng-core/src/main/java/org/apache/flume/source/SyslogSourceConfigurationConstants.java | |
@@ -56,12 +56,14 @@ public final class SyslogSourceConfigurationConstants { | |
public static final String DEFAULT_CHARSET = "UTF-8"; | |
public static final String CONFIG_PORT_CHARSET_PREFIX = "charset.port."; | |
+ public static final String CONFIG_IS_SYSLOG_MULTILINE_BODY = "body.multiline"; | |
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
<profiles> | |
<profile> | |
<id>docker</id> | |
<activation> | |
<property> | |
<name>env.DOCKER_REGISTRY</name> | |
</property> | |
</activation> | |
<build> | |
<plugins> |
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
# Terraform template to have VPC flow logs be sent to AWS Lambda | |
provider "aws" { | |
region = "us-east-1" | |
} | |
resource "aws_cloudwatch_log_group" "vpc_flow_log_group" { | |
name = "vpc-flow-log-group" | |
retention_in_days = 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
echo '<JSON>' | python -c'import fileinput, json; print(json.dumps(json.loads("".join(fileinput.input())), sort_keys=True, indent=4))' |
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 -e | |
# ref: https://raw.githubusercontent.com/cdown/travis-automerge/master/travis-automerge | |
if [ ! -z "$TRAVIS_TAG" ]; then | |
printf "Don't execute releases on tag builds request" | |
exit 0 | |
fi | |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | |
printf "Don't execute releases on pull request" |
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 -e | |
# Ref: https://raw.githubusercontent.com/cdown/travis-automerge/master/travis-automerge | |
: "${BRANCHES_TO_MERGE_REGEX?}" "${BRANCH_TO_MERGE_INTO?}" | |
: "${GITHUB_SECRET_TOKEN?}" "${GITHUB_REPO?}" | |
export GIT_COMMITTER_EMAIL='travis@travis' | |
export GIT_COMMITTER_NAME='Travis CI' | |
if ! grep -q "$BRANCHES_TO_MERGE_REGEX" <<< "$TRAVIS_BRANCH"; then |
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
before_script: | |
# if you are behind a proxy | |
# - echo "Acquire::http::Proxy \"http://xyz:port\";" >> /etc/apt/apt.conf.d/01-proxy.conf | |
- apt-get update -qq | |
- curl -o maven.tgz http://mirror.symnds.com/software/Apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
- tar xf maven.tgz | |
stages: | |
- build | |
- stage | |
- release |
OlderNewer