Skip to content

Instantly share code, notes, and snippets.

Avatar

Lutz Mueller lumue

View GitHub Profile
@lumue
lumue / HumanReadableByteParser.java
Created Mar 10, 2016
parse KiB and MiB to bytes
View HumanReadableByteParser.java
package io.github.lumue.ydlwrapper;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
/**
*
View default.bind
bind G1 KEY_F1
bind G2 KEY_F2
bind G3 KEY_F3
bind G4 KEY_F4
bind G5 KEY_F5
bind G6 KEY_F6
bind G7 KEY_F7
bind G8 KEY_1
bind G9 KEY_2
bind G10 KEY_3
@lumue
lumue / Dockerfile
Last active Oct 31, 2015
dockerfile for a glassfish4 container and a customized domain
View Dockerfile
FROM java:8-jdk
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV GLASSFISH_HOME /usr/local/glassfish4
ENV PATH $PATH:$JAVA_HOME/bin:$GLASSFISH_HOME/bin
RUN apt-get update && \
apt-get install -y curl unzip zip inotify-tools && \
rm -rf /var/lib/apt/lists/*
@lumue
lumue / Dockerfile
Last active Oct 31, 2015
Dockerfile for a datacontainer exposing /databases and /work volumes for a webapp
View Dockerfile
FROM debian:jessie
MAINTAINER Lutz Mueller <mueller.lutz@gmail.com>
RUN mkdir /databases && mkdir /work
VOLUME ["/databases", "/work"]
@lumue
lumue / kodi-syslog-send.sh
Last active Sep 27, 2017
send kodi.log to syslog
View kodi-syslog-send.sh
#!/bin/bash
cat /home/osmc/.kodi/temp/kodi.log |
while read -r line
do
logger $line
done
@lumue
lumue / kodi-syslog-tail.sh
Last active Mar 11, 2021
tail kodi.log (or any other logfile) to syslog
View kodi-syslog-tail.sh
#!/bin/bash
tail -f /home/osmc/.kodi/temp/kodi.log |
while read -r line
do
logger $line
done
View logstash.conf
input {
tcp {
port => 514
type => syslog
}
udp {
port => 514
type => syslog
}
}
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-list/core-list.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View designer.html
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;