Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
dbiesecke / teststream.html
Created July 14, 2020 10:41
MPEGTS JavaScript Player
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/jsmpeg-player@3/build/jsmpeg-player.min.js"></script>
<script>
function testStream() {
var videoUrl = document.getElementById("myinput").value;
new JSMpeg.VideoElement('#videoWrapper', videoUrl);
}
</script>
Creating New Line
To create a New line, we will call the following URL.
http://dns:port/api.php?action=user&sub=create
The above URL, accepts the POST action, and to create a new line we will have to specify some arguments in an array called user_data
Example Code:
@dbiesecke
dbiesecke / README.md
Last active April 13, 2020 20:24
Synology Startup

Startup Methode Synology

  1. /usr/libexec/ hook ,

bsp: /usr/libexec/net/if_link_up/synorelayd_hook.sh


@dbiesecke
dbiesecke / Dockerfile
Last active March 27, 2020 15:11
livestreamer - save TV Streams from Internet
#
FROM debian:jessie
MAINTAINER dbiesecke
ADD http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb /keyring.deb
RUN dpkg -i /keyring.deb
RUN echo 'deb http://www.deb-multimedia.org jessie main non-free' > /etc/apt/sources.list.d/ffmpeg.list
RUN echo 'deb ftp://ftp.deb-multimedia.org jessie main non-free' >> /etc/apt/sources.list.d/ffmpeg.list
RUN apt-get update
@dbiesecke
dbiesecke / README.md
Last active January 13, 2020 18:17
KDE Klipper scripts

KDE Klipper scripts

  • Config will be saved in: .config/plasmashellrc and `

Url2MarkDown

  • format a http link to Markdown format: klipper-markdown-link
  • Regex: ^http.?://.*
@dbiesecke
dbiesecke / docker-compose.yml
Created November 26, 2019 10:37
c9 / c50ide
services:
cloud9:
image: cs50/ide
container_name: cloud9
environment:
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TZ}
# - PORT=80
# - IP=178.254.3.20
@dbiesecke
dbiesecke / README.md
Created October 25, 2019 20:41
Go - Headless Browser with gotk3

#Go - Headless Browser with gotk3

  • gotk3 | go-webkit2
  • On Ubuntu 14/16/18+ sudo apt-get install -y libglib2.0-dev libcairo2-dev libgtk-3-dev xvfb

go get -tags gtk_3_10 github.com/gotk3/gotk3/gtk

#!/usr/bin/perl
# use Carp;
# require Exporter;
# require DynaLoader;
# require 5.006;
my $hostname = `hostname | xargs echo -n`; # bot will get here machine name
my $name = getlogin."\@".$hostname;
@dbiesecke
dbiesecke / KodiScriptImporter.py
Last active October 2, 2019 20:18
Kodi Server Test
# -*- coding: utf-8 -*-
'''
Created on 9/05/2014
@author: pybquillast
'''
import sys
import os
@dbiesecke
dbiesecke / Lircmap.xml
Created September 30, 2019 18:59
Kodi / Libreelect LIRC Config - Example on Trongle X3 - Amlogic S905X
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~/.kodi/userdata/Lircmap.xml -->
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device="name_Lirc_calls_the_remote"> -->
<!-- -->
<!-- For the commands the layout following layout is used -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->