Skip to content

Instantly share code, notes, and snippets.

View thadguidry's full-sized avatar
🏠
Home, likely researching

Thad Guidry thadguidry

🏠
Home, likely researching
View GitHub Profile
# Default system properties included when running spark-submit.
# This is useful for setting default environmental settings.
# Example:
# spark.master spark://master:7077
spark.eventLog.enabled true
spark.eventLog.dir file:///home/ozawa/sparkeventlogs
# spark.serializer org.apache.spark.serializer.KryoSerializer
# spark.driver.memory 5g
# spark.executor.extraJavaOptions -XX:+PrintGCDetails -Dkey=value -Dnumbers="one two three"
@thadguidry
thadguidry / Dockerfile
Created December 2, 2020 23:13
Dockerfile for OpenRefine Development version
FROM maven:3.6.0-jdk-8-alpine
MAINTAINER thadguidry@gmail.com
RUN apk add --no-cache git
RUN git clone https://github.com/OpenRefine/OpenRefine.git
RUN OpenRefine/refine build
RUN mkdir /mnt/refine
VOLUME /mnt/refine
EXPOSE 3333
CMD ["OpenRefine/refine", "-i", "0.0.0.0", "-d", "/mnt/refine"]
@thadguidry
thadguidry / docker-openrefine-rdf-extension.yml
Created December 2, 2020 22:35
Dockerfile for OpenRefine with RDF Extension
#
# Dockerfile for OpenRefine with RDF Extension
#
FROM openjdk:8-jre-alpine
MAINTAINER thadguidry@gmail.com
ENV OPENREFINE_MEMORY 2G
ENV OPENREFINE_VERSION 3.4.1
ENV OPENREFINE_FILE openrefine-linux-${OPENREFINE_VERSION}.tar.gz
@thadguidry
thadguidry / gist:b3158e152d1006d62bb1a8d3f9070a50
Created March 22, 2019 19:52
docker run image with mounted folder
docker run -it --mount type=bind,source=/home/thad/xray-test-runner,target=/xray 0e23a5cc9342
@thadguidry
thadguidry / gist:61018dc6ce5154ecf941ea2014ccc7f3
Last active March 25, 2019 19:00
build docker image using proxy and with buildkit support
$ sudo DOCKER_BUILDKIT=1 docker build --build-arg https_proxy=http://10.7.0.140:8081 .
@thadguidry
thadguidry / gist:031f7c5c2022cb1979afc9f793b3708a
Last active March 22, 2019 17:07
docker run mount example using python image
xray-test-runner]# docker run -d -it --name msptest --mount type=bind,source="$(pwd)",target=/xray python:3.7-stretch /bin/bash
@thadguidry
thadguidry / build.gradle
Last active October 14, 2023 09:53
Example Gradle Build for Java War project including usage of Jenkins system variables, git branch, git tag, Artifactory
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: 'cobertura.gradle'
defaultTasks 'clean', 'build'
description = """Example Messaging Gateway"""
group = 'com.example'
@thadguidry
thadguidry / debug_grape
Created November 30, 2017 15:18
groovy grape error
-bash-4.2$ grape -Dgroovy.grape.report.downloads=true install org.codehaus.groovy.modules.http-builder http-builder 0.7
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)
Caused by: groovy.lang.MissingMethodException: No signature of method: groovyjarjarcommonscli.Options.getOptionProperties() is applicable for argument types: (java.lang.String) values: [D]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
@thadguidry
thadguidry / keybase.md
Created November 10, 2017 00:16
myproof

Keybase proof

I hereby claim:

  • I am thadguidry on github.
  • I am guido1st (https://keybase.io/guido1st) on keybase.
  • I have a public key ASDpaKTPbxbFHnHPlw-YSlIyp3h2sxL9zqGbmfKyDVk9pgo

To claim this, I am signing this object:

@thadguidry
thadguidry / gist:ccb8dce6bc363dbc17a810d7198661be
Created October 6, 2017 21:37
Jenkins Pipeline Groovy snippet
#!groovy
import hudson.tasks.test.*
import hudson.model.Actionable
import groovy.json.*
def getJunitData() {
testResults = withContext(hudson.tasks.test.TestObject)
echo "describe " + testResults.getFullName()
def jsonStr = '';
if (testResults != null) {