Skip to content

Instantly share code, notes, and snippets.

@cboehme
cboehme / domains.json
Last active December 24, 2024 09:30
All known Eco Counter domains
[
{
"id": 20,
"name": "CRT Centre-Val de Loire"
}, {
"id": 26,
"name": "Lahti"
}, {
"id": 40,
"name": "ADT_Ardeche"
@cboehme
cboehme / convert-metamorph-test-to-java.xsl
Created December 8, 2016 20:20
Convert metamorph-test xml files to standard JUnit tests
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:mt="http://www.culturegraph.org/metamorph-test"
xmlns:mm="http://www.culturegraph.org/metamorph"
xmlns:cgxml="http://www.culturegraph.org/cgxml">
<xsl:output method="text" />
<xsl:strip-space elements="*" />
<xsl:param name="classUnderTest" />
@cboehme
cboehme / jarloader.java
Created September 22, 2015 15:24
Jar Scanner
package net.b3e.test.jarloader;
import static java.util.Arrays.stream;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
### Keybase proof
I hereby claim:
* I am cboehme on github.
* I am cboehme (https://keybase.io/cboehme) on keybase.
* I have a public key whose fingerprint is E8F0 2646 446A 0F98 D785 28FC A014 1569 59D6 F841
To claim this, I am signing this object:
@cboehme
cboehme / travis-encrypt.sh
Last active December 15, 2015 04:50
This bash script encrypts data so that it can be used with Travis' encryption key feature (http://about.travis-ci.org/docs/user/encryption-keys/). In contrast to the `travis encrypt` CLI utility it does not require ruby. The script requires `wget` and `openssl`.
#!/bin/bash
PK_FILE="__travis-key.pub"
CERT_FILE="__travis-root-cert.pem"
# Root CA for the certificate used in the https connection with
# the travis api (only required if the root CA certificate is
# not already installed which does not seem to be the case
# with Cygwin):
CA_CERTIFICATE="-----BEGIN CERTIFICATE-----