Skip to content

Instantly share code, notes, and snippets.

View pdudits's full-sized avatar

Patrik Duditš pdudits

  • Košice, Slovakia
View GitHub Profile
@pdudits
pdudits / pom.xml
Last active April 19, 2021 10:33
Payara BOM
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fish.payara.examples.bom</groupId>
<artifactId>bom-import</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<dependencyManagement>
@pdudits
pdudits / Dockerfile
Last active February 27, 2020 15:01
CDS-enabled Payara Micro docker image
FROM azul/zulu-openjdk-alpine:11.0.6
ENV PAYARA_HOME=/opt/payara
# Create and set the Payara user and working directory owned
# by the new user
RUN addgroup payara && \
adduser -D -h ${PAYARA_HOME} -H -s /bin/bash payara -G payara && \
echo payara:payara | chpasswd && \
mkdir -p ${PAYARA_HOME} && \
@pdudits
pdudits / horizontal-twitter.userscript.js
Last active January 13, 2019 20:41
horizontal twitter
// ==UserScript==
// @name Twitter in columns
// @namespace http://tampermonkey.net/
// @version 0.1
// @description What if we just used the horizontal space in timeline? (I didn't adapt other elements, you scroll past them anyway)
// @author Patrik dudits
// @match https://twitter.com/
// @grant none
// ==/UserScript==
@pdudits
pdudits / README.MD
Created January 21, 2016 16:48
Payara - Making JPA query in extended persistence context outside TX clears the persistence context

Run mvn install on provided project.

Fails with all payara versions on JDK 7 and JDK 8. Works with Glassfish 3.1.2.2

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="13.2">
<help_text>// Uncomment the following line to change the fontsize:
// fontsize=14
//////////////////////////////////////////////////////////////////////////////////////////////
// Welcome to UMLet!
//
// Double-click on UML elements to add them to the diagram, or to copy them
@pdudits
pdudits / gist:5064309
Created March 1, 2013 12:26
Proposed fix for GLASSFISH-19746 and GLASSFISH-19508 based on SVN revision 55564 branch 3.1.2.2-no-delete
# HG changeset patch
# User Patrik Dudits <patrik@dudits.net>
# Date 1362140263 -3600
# Branch original
# Node ID 9820e648fc3b86f6b119254d7ceadd783a3168bb
# Parent b117e6807cf56ef428781b453d1c20b182084ebe
GLASSFISH-19746: Memory leak in dynamic reconfiguration
- Instead of relying on Map of all created proxies that are only cleared during
JDBC resource redeployment, use version counter.
@pdudits
pdudits / JBoss way pom.xml
Created November 10, 2012 16:24
jsf dependencies
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-web-6.0</artifactId>
<version>3.0.1.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependency>
@pdudits
pdudits / .gitignore
Created March 29, 2012 21:18
depswitch
/api-dev/target/
/api-deploy/target/
/application/target/