Skip to content

Instantly share code, notes, and snippets.

@aheusingfeld
aheusingfeld / replace_spec_chars.sh
Created January 3, 2017 16:50
Replace german special chars in file and folder names
#!/bin/bash
# This replaces german special chars in all files and folder under the specified folder
# Call this via "./replace_spec_chars.sh `pwd`"
#
# PREREQUISITES: make sure to have the `rename` command installed which accepts perl regexs
TARGET_FOLDER=$1
CURR_DIR=`pwd`
# make sure to preserve spaces in file and folder names

Keybase proof

I hereby claim:

  • I am aheusingfeld on github.
  • I am aheusingfeld (https://keybase.io/aheusingfeld) on keybase.
  • I have a public key whose fingerprint is FA5B 84C9 1EB3 A718 D22B 3B17 A87E C8FE A994 A2B2

To claim this, I am signing this object:

@aheusingfeld
aheusingfeld / strace-jdk1.7.0_10.txt
Created December 4, 2012 21:28
Compare strace of jdk1.7.0_10 and openjdk-7-jdk on ubuntu-nexus7
This file has been truncated, but you can view the full file.
$ sudo strace -o strace-javafx.txt -f /opt/java/jdk1.7.0_10/bin/java -Djavafx.platform=eglfb -Djava.library.path=/usr/lib/jni -Dcom.sun.javafx.isEmbedded=false -cp /opt/java/jdk1.7.0_10/jre/lib/jfxrt.jar:/home/ubuntu/Downloads/javafx-samples-2.2.3/FXML-LoginDemo.jar com.javafx.main.Main
------
18223 execve("/opt/java/jdk1.7.0_10/bin/java", ["/opt/java/jdk1.7.0_10/bin/java", "-Djavafx.platform=eglfb", "-Djava.library.path=/usr/lib/jni", "-Dcom.sun.javafx.isEmbedded=true", "-d32", "-cp", "/opt/java/jdk1.7.0_10/jre/lib/jf"..., "com.javafx.main.Main"], [/* 15 vars */]) = 0
18223 brk(0) = 0x144c000
18223 uname({sys="Linux", node="nexus7-cc191581", ...}) = 0
18223 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
18223 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40044000
18223 readlink("/proc/self/exe", "/opt/java/jdk1.7.0_10/bin/java", 4096) = 30
@aheusingfeld
aheusingfeld / BeanPropertySettingTransformer.java
Created February 9, 2012 20:52
Class to be used as a Transformer in a Spring Integration workflow
package de.fittransporte.fitdb.util.integration;
import de.fittransporte.fitdb.util.ExpressionUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.PropertyAccessorFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.ConversionService;
import org.springframework.expression.EvaluationException;
@aheusingfeld
aheusingfeld / jira-announcement-banner.html
Created February 2, 2012 12:38
Default Comment Security Level in Atlassian JIRA
<script language="JavaScript">
<!--
jQuery.noConflict();
var defaultRoleName = "role:10030";
var customRoleSelected = false;
function changeCommentLevel()
{
if (customRoleSelected) return;
@aheusingfeld
aheusingfeld / uncaughtException.jsp
Created October 25, 2011 20:41
Customize exception JSP and Spring MVC config
- <p>
- <spring:message code="error_uncaughtexception_problemdescription" />
- </p>
<c:if test="${not empty exception}">
- <p>
- <h4>
- <spring:message code="exception_details" />
- </h4>
- <spring:message var="message" code="exception_message" htmlEscape="false" />
- <util:panel id="_message" title="${message}" openPane="false">