Skip to content

Instantly share code, notes, and snippets.

View lumue's full-sized avatar

Lutz Mueller lumue

View GitHub Profile
@lumue
lumue / kodi-syslog-tail.sh
Last active March 11, 2021 16:37
tail kodi.log (or any other logfile) to syslog
#!/bin/bash
tail -f /home/osmc/.kodi/temp/kodi.log |
while read -r line
do
logger $line
done
@lumue
lumue / kodi-syslog-send.sh
Last active September 27, 2017 10:50
send kodi.log to syslog
#!/bin/bash
cat /home/osmc/.kodi/temp/kodi.log |
while read -r line
do
logger $line
done
@lumue
lumue / HumanReadableByteParser.java
Created March 10, 2016 13:38
parse KiB and MiB to bytes
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;
/**
*
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 October 31, 2015 14:47
dockerfile for a glassfish4 container and a customized domain
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 October 31, 2015 06:04
Dockerfile for a datacontainer exposing /databases and /work volumes for a webapp
FROM debian:jessie
MAINTAINER Lutz Mueller <mueller.lutz@gmail.com>
RUN mkdir /databases && mkdir /work
VOLUME ["/databases", "/work"]
@lumue
lumue / logstash.conf
Last active September 26, 2015 12:54
a better logstash syslog input - inspired by http://kartar.net/2014/09/when-logstash-and-syslog-go-wrong/
input {
tcp {
port => 514
type => syslog
}
udp {
port => 514
type => syslog
}
}
@lumue
lumue / designer.html
Last active August 29, 2015 14:14
designer
<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">
@lumue
lumue / designer.html
Last active August 29, 2015 14:13
designer
<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;
@lumue
lumue / designer.html
Created September 12, 2014 14:59
designer
<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;