Skip to content

Instantly share code, notes, and snippets.

Eliezio Oliveira eliezio

Block or report user

Report or block eliezio

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 test
package com.example.demo;
import lombok.SneakyThrows;
import lombok.Value;
import org.apache.commons.beanutils.PropertyUtils;
import sun.reflect.CallerSensitive;
import java.util.*;
import java.util.function.Function;
import java.util.stream.*;
View 0001-Update-to-0.9.2-Fluorine-SR2.patch
From b42b647e8be360ac95591a9ef344b33670502659 Mon Sep 17 00:00:00 2001
From: Eliezio Oliveira <eliezio@pm.me>
Date: Mon, 18 Mar 2019 19:04:45 +0000
Subject: [PATCH] Update to 0.9.2 (Fluorine-SR2)
---
PKGBUILD | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@eliezio
eliezio / 0001-Upgrade-to-4.2.3.patch
Created Mar 18, 2019
AUR apache-karaf upgrade to 4.2.3
View 0001-Upgrade-to-4.2.3.patch
From 209f9bb07c9371ddb988e2a73327d8501d1ac8a3 Mon Sep 17 00:00:00 2001
From: Eliezio Oliveira <eliezio@pm.me>
Date: Mon, 18 Mar 2019 10:16:28 +0000
Subject: [PATCH] Upgrade to 4.2.3
---
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@eliezio
eliezio / upgrade-8u181.patch
Created Nov 18, 2018
zulu-jdk upgrade to 8u181
View upgrade-8u181.patch
diff --git a/PKGBUILD b/PKGBUILD
index a145b1a..ad437a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
pkgname=zulu-jdk
_major=8
-_minor=144
+_minor=181
View UtilsSpec.groovy
import spock.lang.Specification
import spock.lang.Unroll
class UtilsSpec extends Specification {
@Unroll
def 'flat collection of integers: #list'() {
expect:
Utils.flatIntegers(list) == expectedResult
View Utils.java
import java.util.*;
public final class Utils {
public static List<Integer> flatIntegers(Collection col) {
if (col == null) {
throw new IllegalArgumentException("Collection cannot be null");
}
List<Integer> result = new ArrayList<>();
Deque<Iterator> queue = new ArrayDeque<>();
View keybase.md

Keybase proof

I hereby claim:

  • I am eliezio on github.
  • I am elieziob (https://keybase.io/elieziob) on keybase.
  • I have a public key ASDuNatsnfwoACg-S0pIvHX-KyDeQrABI_Fbppxca4Bu8Qo

To claim this, I am signing this object:

View crypto-functions.sh
function hex2bin() {
local data=$1
echo -n $data | xxd -r -ps
}
function bin2hex() {
xxd -ps -c1024
}
function to_ascii() {
View gen-test-data.sh
#!/bin/bash
if [ $BASH_VERSINFO -lt 4 ]; then
echo "*** ERROR: Requires Bash version 4 or newer"
exit 1
fi
SCRIPTS_DIR=$(dirname $0)
RESOURCES_DIR=$(realpath $SCRIPTS_DIR/../resources)
RSA_PEM=$RESOURCES_DIR/rsa.pem
@eliezio
eliezio / qmake-mkspecs.patch
Created May 25, 2015
qmake fix g++-base.conf
View qmake-mkspecs.patch
--- /opt/Qt/5.4/gcc_64/mkspecs/common/g++-base.conf~ 2015-02-17 08:17:22.000000000 -0200
+++ /opt/Qt/5.4/gcc_64/mkspecs/common/g++-base.conf 2015-05-25 15:15:06.293300241 -0300
@@ -31,5 +31,5 @@
QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
-QMAKE_CXXFLAGS_CXX11 = -std=c++0x
+QMAKE_CXXFLAGS_CXX11 = -std=c++1y
QMAKE_LFLAGS_CXX11 =
You can’t perform that action at this time.