Skip to content

Instantly share code, notes, and snippets.

View ppkarwasz's full-sized avatar
💭
Available for Open Source contract work

Piotr P. Karwasz ppkarwasz

💭
Available for Open Source contract work
View GitHub Profile
@ppkarwasz
ppkarwasz / sbom.txt
Last active September 1, 2025 11:59
Contents of Apache Solr 9.9.0 binary distribution
com.adobe.xmp:xmpcore:6.1.10
com.beust:jcommander:1.82
com.carrotsearch:hppc:0.10.0
com.cybozu.labs:langdetect:1.1-20120112
com.epam:parso:2.0.14
com.fasterxml.jackson.core:jackson-annotations:2.18.0
com.fasterxml.jackson.core:jackson-core:2.18.0
com.fasterxml.jackson.core:jackson-databind:2.18.0
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.18.0
com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.18.0
@ppkarwasz
ppkarwasz / BND Baseline report
Last active January 24, 2024 09:27
Difference between `org.apache.logging.log4j:log4j-1.2-api` 2.22.1 and `log4j:log4j` 1.2.17
===============================================================
Name Type Delta New Old Suggest
org.apache.logging.log4j.1.2.api BUNDLE MAJOR 2.22.1 1.2.17 -
MAJOR BUNDLE log4j-1.2-api-2.22.1
MAJOR API <api>
MAJOR PACKAGE org.apache.log4j
ADDED CLASS org.apache.log4j.AppenderSkeleton$NoOpErrorHandler
ADDED ACCESS static
ADDED IMPLEMENTS org.apache.log4j.spi.ErrorHandler
ADDED METHOD <init>()
@ppkarwasz
ppkarwasz / Example.java
Created January 17, 2021 19:41
JAXB: example of remapping of unqualified elements
/*
* Add this annotation to the package:
* @XmlSchema(xmlns = {
* @XmlNs(prefix = "", namespaceURI = Example.NS1),
* @XmlNs(prefix = "name2", namespaceURI = Example.NS2)}, elementFormDefault =
* XmlNsForm.QUALIFIED)
*/
public class Example {
@XmlType(namespace = XMLConstants.NULL_NS_URI)
@ppkarwasz
ppkarwasz / MetaProxyServlet.java
Last active December 28, 2020 13:10
An example how to register `ProxyServlet` instances during runtime.
package pl.copernik.servlet;
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.TreeMap;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
@ppkarwasz
ppkarwasz / client.c
Created February 16, 2020 21:05
Small remote command execution
#include <stdio.h>
#include <stdlib.h>
#include "libwrapper.h"
int main(int argc, char *const argv[]) {
int ctrl = prepare_socket(true);
if (argc < 2) {