Skip to content

Instantly share code, notes, and snippets.

View simon04's full-sized avatar

Simon Legner simon04

  • Innsbruck, Austria
View GitHub Profile
@simon04
simon04 / README.md
Created December 7, 2021 11:09
IntelliJ IDEA // external tools // javap
@simon04
simon04 / README.md
Last active December 7, 2021 11:08
IntelliJ IDEA // external tools // oxipng
@simon04
simon04 / Getting rid of "INFO: None-ODF attribute created for …".md
Last active November 7, 2021 00:22
Getting rid of "INFO: None-ODF attribute created for …"

I tried to get rid of the following messages by the Apache odfdom library.

Aug 20, 2014 8:55:45 AM org.odftoolkit.odfdom.pkg.OdfXMLFactory newOdfAttribute
INFO: None-ODF attribute created for calcext:value-type

Strangely, this did not work out …

java.util.logging.Logger.getLogger("org.odftoolkit").setLevel(java.util.logging.Level.WARNING);
@simon04
simon04 / fontAwesome.ts
Last active June 11, 2021 05:25
Font Awesome directive for Angular.js 1.x
import angular from 'angular';
import fontawesome from '@fortawesome/fontawesome-svg-core';
import {faPrint} from '@fortawesome/free-solid-svg-icons/faPrint';
import {faSearch} from '@fortawesome/free-solid-svg-icons/faSearch';
fontawesome.library.add(faPrint, faSearch);
function directive(): ng.IDirective {
return {
restrict: 'E',
@simon04
simon04 / README.md
Created August 21, 2020 09:11
Java URI copy constructor

Using the URI copy constructor on an URI where the userinfo part contains a percent-escaped colon (U+003A as %3A) produces a different result.

@simon04
simon04 / docker-compose.yml
Created August 20, 2020 09:14 — forked from puppybits/docker-compose.yml
sentry docker-compose
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- /var/lib/postgresql/data
@simon04
simon04 / t.js
Created August 12, 2020 15:21
Minimalistic i18n for JavaScript
var i18nMessages = {};
["en", "de", "it"].forEach(function (lang) {
jQuery.ajax({
url: "./i18n/" + lang + ".json",
dataType: 'json',
async: false,
success: function (data) {
i18nMessages[lang] = data;
}
})
@simon04
simon04 / Java 8.txt
Last active August 2, 2020 10:06
ISO-8601 for IntelliJ
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
12/21/17
ar 21/12/17
ar_AE 21/12/17
ar_BH 21/12/17
ar_DZ 21/12/17
ar_EG 21/12/17
@simon04
simon04 / README.md
Created June 17, 2020 10:37
Serve swagger-ui using Jetty's DefaultServlet