Skip to content

Instantly share code, notes, and snippets.

View fkleon's full-sized avatar

Frederik Leonhardt fkleon

View GitHub Profile
@fkleon
fkleon / 0001-Support-basic-auth-on-source-URLs.md
Last active May 17, 2017 00:38
adore-djatoka: Support for source image URLs protected by basic authentication

Support passing basic authentication credentials via source image URLs (rft_id)

This patch allows adore-djatoka to properly resolve source image URLs that contain URL-encoded basic auth credentials, for example:

http://user:[email protected]/gmd/gmd433/g4330/g4330/np000066.jp2

Note that this way of passing credentials has been deprecated in RFC3986. It is only used to pass the credentials to adore-djatoka, which then uses the Authorization header to

Keybase proof

I hereby claim:

  • I am fkleon on github.
  • I am fkleon (https://keybase.io/fkleon) on keybase.
  • I have a public key ASClG8NdcOfysm4oqOsImCZDGgdeZMJ_uWDYIU_7zb7X-go

To claim this, I am signing this object:

@fkleon
fkleon / ResourceMinimal.java
Created November 29, 2016 02:10
jaxrs-analyzer bytecode collector bug
package nz.net.catalyst.api.v1;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("/")
public class ResourceMinimal {
@GET
@fkleon
fkleon / dojo-bootstrap.get.html.ftl
Created December 22, 2015 19:13
Alfresco extension to enable Dojo's cacheBust to test compatibility with Aikau
<#assign webframeworkConfig = config.scoped["WebFramework"]["web-framework"]!>
<@markup id="dojoCacheBust" target="setDojoConfig" action="after" scope="global" >
<#if webframeworkConfig.dojoEnabled>
<script type="text/javascript">
// Enable Cache Bust for testing
dojoConfig.cacheBust = Date.now();
</script>
</#if>
</@>
@fkleon
fkleon / svn_deploy.sh
Created November 20, 2013 01:35
A couple of shell scripts to help with SVN management and project deployment. Tailored to a specific project, might not be of great general use.
#!/bin/bash
#########################################################
# A shell script to deploy a stable project version. #
# #
# For a detailed description, see the wiki. #
# #
# Version: #
# 1.0.1 #
# Author(s): #
@fkleon
fkleon / jboss.sh
Last active November 7, 2022 07:24
A shell script to perform simple management operations on a JBoss instance.
#!/bin/sh
#########################################################
# A shell script to manage a JBoss instance. #
# #
# For a detailed description see wiki. #
# #
# Version: #
# 1.1.4 #
# Author(s): #
@fkleon
fkleon / temperature.sh
Created August 3, 2013 18:27
FreeBSD / FreeNAS script to send a status report containing CPU and HDD temps and status to a given email address. Tested on FreeNAS 9.1.0-RELEASE (based on FreeBSD 9-STABLE). Based on the script available at http://forums.freenas.org/threads/how-to-monitor-system-cpu-hdd-mobo-gpu-temperatures-on-freenas-8.2994/#post-38847.
#! /usr/local/bin/sh
# Write email header to temp file
(
echo "To: your@email"
echo "Subject: System Temperatures INFO"
echo " "
) > /var/cover
# Define adastat function, which writes drive activity to temp file
@fkleon
fkleon / gist:4683266
Created January 31, 2013 14:39
Example JUnit 4 Test class
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import bank.Customer;
import bank.VipCustomer;
public class VipCustomerTest {