Skip to content

Instantly share code, notes, and snippets.

View fwilhe's full-sized avatar
🐧
Working on Project "Garden Linux"

Florian Wilhelm fwilhe

🐧
Working on Project "Garden Linux"
  • @SAP SE
  • Potsdam
  • 00:06 (UTC +02:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sputnik27 on github.
  • I am flo_wi (https://keybase.io/flo_wi) on keybase.
  • I have a public key whose fingerprint is 3A21 4F10 9991 36D0 F3C5 31C3 0F98 380B C6B1 09D7

To claim this, I am signing this object:

@fwilhe
fwilhe / pom.xml
Created May 19, 2014 22:50 — forked from cxxr/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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>com.example</groupId>
<artifactId>root-pom</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Root POM</name>
<url>http://git.example.com/rootpom.git</url>
@fwilhe
fwilhe / mvn.shade.pom.xml
Created August 16, 2014 19:30
Maven shade plugin-config to set the main-class for a *.jar-file.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
@fwilhe
fwilhe / osiam_java_formatter.xml
Last active August 29, 2015 14:26
OSIAM Eclipse Formatter
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="12">
<profile kind="CodeFormatterProfile" name="tarent-osiam" version="12">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
@fwilhe
fwilhe / .gitignore
Last active October 1, 2015 07:30
Minimal .gitignore Template for Gradle Java Intellij-Projects
.gradle/
.idea/
*.iml
build/
*~
@fwilhe
fwilhe / 1_create_data.sql
Last active August 29, 2015 14:27
OSIAM Dataset 'Problem with "not"-Filter'
-- users
INSERT INTO scim_id (internal_id, id) VALUES (1, '07486cd7-f3f9-4b4f-8379-371bc10fd412');
INSERT INTO scim_id (internal_id, id) VALUES (2, '704cf301-264c-4caa-aced-8873bb1cbf48');
INSERT INTO scim_id (internal_id, id) VALUES (3, 'c18a780b-d858-4177-80ef-5de9491eee2c');
INSERT INTO scim_user (internal_id, user_name, password) VALUES (1, '1', 'o5pMnVkU');
INSERT INTO scim_user (internal_id, user_name, password) VALUES (2, '2', 'QjK8kgyR');
INSERT INTO scim_user (internal_id, user_name, password) VALUES (3, '3', 'i43FXsmF');
-- groups
@fwilhe
fwilhe / index.html
Last active August 29, 2015 14:28
Local Quick and Dirty JS Scratchpad
<!DOCTYPE html>
<html lang="en">
<!--
Author: Florian Wilhelm
License: MIT
http://opensource.org/licenses/MIT
-->
<head>
def namespaces = ["org.osiam.resource-server", "org.osiam.auth-server", "org.osiam.self-administration"]
def properties = new Properties()
new File("../resource-server.properties").withInputStream {
properties.load(it)
}
private String propertyNameWithoutNamespace(String propertyName, String fullyQualifiedNamespace) {
propertyName.substring(fullyQualifiedNamespace.length() + 1, propertyName.length())
}
#!/bin/sh
# based on https://raw.githubusercontent.com/fkling/esprima_ast_explorer/master/scripts/push-site.sh
# precondition: `gh-pages` branch does exist
TARGETPATH="../$(basename $(pwd))_gh_pages"
REMOTE=$(git remote -v | grep origin | grep "(push)" | cut -f 2 | cut -d ' ' -f 1)
if ! git diff --quiet && git diff --cached --quiet; then
echo >&2 "Cannot build, your index contains uncommitted changes."
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8'
}
}