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
#!/bin/bash
function setjdk {
local ver=${1?Usage: setjdk <version>}
export JAVA_HOME=$(/usr/libexec/java_home -v $ver)
PATH=$(echo $PATH | tr ':' '\n' | grep -v Java | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
}
#!/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) {
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
[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
#!/bin/bash
function setjdk {
local ver=${1?Usage: setjdk <version>}
export JAVA_HOME=$(/usr/libexec/java_home -v $ver)
PATH=$(echo $PATH | tr ':' '\n' | grep -v Java | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
}
#!/bin/bash
function setjdk {
local ver=${1?Usage: setjdk <version>}
export JAVA_HOME=$(/usr/libexec/java_home -v $ver)
PATH=$(echo $PATH | tr ':' '\n' | grep -v Java | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
}
VirtualMachineDescriptor virtualMachineDescriptor = VirtualMachine.list().get(0);
MonitoredHost host = MonitoredHost.getMonitoredHost("localhost");
MonitoredVm monitoredVm = host.getMonitoredVm(new VmIdentifier(virtualMachineDescriptor.id()));
System.out.println(MonitoredVmUtil.commandLine(monitoredVm));