Skip to content

Instantly share code, notes, and snippets.

View martint's full-sized avatar

Martin Traverso martint

View GitHub Profile
This file has been truncated, but you can view the full file.
[INFO] ---------------------< io.trino:trino-server-rpm >----------------------
[INFO] Building trino-server-rpm 374 [73/83]
[INFO] --------------------------------[ rpm ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ trino-server-rpm ---
[INFO] Deleting /Users/martin/projects/trino/trino/core/trino-server-rpm/target
[INFO]
[INFO] --- dependency-scope-maven-plugin:0.10:check (default) @ trino-server-rpm ---
[INFO] No test dependency scope issues found
[INFO]
#!/bin/sh
find_in_ancestor() {
dir="$2"
while [ -n "$dir" ] && [ ! -f "$dir/$1" ]; do
dir=${dir%/*}
done
if [ -f "$dir/$1" ]; then
printf '%s\n' "$dir"
fi
PRESTO SOFTWARE FOUNDATION
Individual Contributor License Agreement ("Agreement") V2.0
This Agreement reproduces without alteration the Apache Software
Foundation Individual Contributor License Agreement V2.0 except
for changing appropriate references.
Thank you for your interest in the Presto Software Foundation (the "Foundation").
In order to clarify the intellectual property license granted with Contributions
from any person or entity, the Foundation must have a Contributor License Agreement
#!/bin/sh
CURRENT=$1
git log --format='%<|(21)%cn %<|(39)%cd %<|(50)%h %s' --date=format-local:'%m-%d %H:%M:%S' $CURRENT.. | \
grep -vF '[maven-release-plugin]' | sort | \
awk '
{
name = substr($0, 1, 21)
if (name != current) {
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building aircompressor 0.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:exec (default-cli) @ aircompressor ---
# JMH version: 1.19
# VM version: JDK 1.8.0_152, VM 25.152-b16
# VM invoker: /data/users/martint/jdk/jdk1.8.0_152/jre/bin/java
CompilerOracle: print com/facebook/presto/hive/metastore/HiveMetastoreApiStats$1.call
CompilerOracle: print com/facebook/presto/hive/RetryDriver.run
Compiled method (c1) 286073 33290 ! 3 com.facebook.presto.hive.metastore.HiveMetastoreApiStats$1::call (148 bytes)
total in heap [0x00007f345bca5190,0x00007f345bcaa230] = 20640
relocation [0x00007f345bca52b8,0x00007f345bca59b8] = 1792
main code [0x00007f345bca59c0,0x00007f345bca8c80] = 12992
stub code [0x00007f345bca8c80,0x00007f345bca8e60] = 480
oops [0x00007f345bca8e60,0x00007f345bca8e70] = 16
metadata [0x00007f345bca8e70,0x00007f345bca8f10] = 160
scopes data [0x00007f345bca8f10,0x00007f345bca95a0] = 1680
/*
* 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,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Scopes;
import com.google.inject.multibindings.MapBinder;
import javax.inject.Inject;
import java.util.Map;
/*
* 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,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@martint
martint / notify.sh
Last active August 29, 2015 14:02
notify wrapper
# needs https://github.com/alloy/terminal-notifier
# brew install terminal-notifier
# to use, source this file or copy the code into your bashrc,
# then prefix your commands with "notify". E.g.,
#
# notify mvn clean install
#
notify() {