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
@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 / 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 / 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: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 / 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 [email protected]
ENV OPENREFINE_MEMORY 2G
ENV OPENREFINE_VERSION 3.4.1
ENV OPENREFINE_FILE openrefine-linux-${OPENREFINE_VERSION}.tar.gz
@thadguidry
thadguidry / Dockerfile
Created December 2, 2020 23:13
Dockerfile for OpenRefine Development version
FROM maven:3.6.0-jdk-8-alpine
MAINTAINER [email protected]
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"]
# 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 / drug_search.txt
Created January 6, 2021 20:26
Wikidata query for drug search
# drug search
SELECT ?item ?itemLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q8386 .
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "EntitySearch";
mwapi:search "Tylenol"; # Search for things named "Tylenol"
@thadguidry
thadguidry / drugs_with_rxnormid
Created January 14, 2021 16:38
All subclasses of Drugs including Pharmaceutical Products with an RXNormID
#Drugs (and all subclasses of Drugs) with an RXNormID
SELECT ?item ?itemLabel ?rxNormID
WHERE
{
?item wdt:P31/wdt:P279* wd:Q8386 .
?item wdt:P3345 ?rxNormID .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
@thadguidry
thadguidry / gist:7f9141580696eec943133a8617f6d9d1
Created January 29, 2021 17:42
debug OpenRefine Clustering
11:37:14.361 [ refine] GET /command/core/get-clustering-functions-and-distances (78250ms)
11:37:14.363 [ refine] POST /command/core/compute-clusters (2ms)
381012 1207 com.fasterxml.jackson.core.util.BufferRecyclers::getBufferRecycler (73 bytes) made not entrant
381013 1227 com.fasterxml.jackson.core.JsonFactory::createParser (72 bytes) made not entrant
381026 1337 com.fasterxml.jackson.core.JsonFactory::_createGenerator (77 bytes) made not entrant
381026 1350 com.fasterxml.jackson.databind.SerializerProvider::findTypedValueSerializer (108 bytes) made not entrant
381027 1144 com.fasterxml.jackson.databind.deser.BeanDeserializer::deserialize (62 bytes) made not entrant
381027 1138 com.fasterxml.jackson.core.base.ParserMinimalBase::hasToken (14 bytes) made not entrant
381028 1129 com.fasterxml.jackson.core.json.ReaderBasedJsonParser::nextToken (512 bytes) made not entran