Skip to content

Instantly share code, notes, and snippets.

Martin Traverso martint

Block or report user

Report or block martint

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 1 - Presto Foundation Individual CLA.txt
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
View git-release-changes
#!/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) {
View lz4-decompress-java8.txt
[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
View gist:7201af9459eac06c5dd2
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
View Main.java
/*
* 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.
View Main.java
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;
View Main.java
/*
* 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 Aug 29, 2015
notify wrapper
View notify.sh
# 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() {
View gist:783cf3e30c17fc897423
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f61e68c1115, pid=32185, tid=1125943616
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x814115] LoadKlassNode::make(PhaseGVN&, Node*, Node*, TypePtr const*, TypeKlassPtr const*)+0x45
#
View hs_err.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe959e2d2f8, pid=33642, tid=140637122250496
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x3fd2f8] ciSignature::ciSignature(ciKlass*, ciSymbol*, ciMethodType*)+0x178
#
You can’t perform that action at this time.