Skip to content

Instantly share code, notes, and snippets.

@oznek
oznek / start-stop-example.sh
Created April 13, 2019 17:42 — forked from alobato/start-stop-example.sh
start-stop-example
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@oznek
oznek / keybase.md
Created April 2, 2015 03:35
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am oznek on github.
  • I am oznek (https://keybase.io/oznek) on keybase.
  • I have a public key whose fingerprint is 9760 047C 7D83 2ECE 24A4 8AC6 38D7 8C33 E821 595C

To claim this, I am signing this object:

@oznek
oznek / gist:512277f325fa45afab38
Created January 27, 2015 04:04
Mediatomb Protocol Info Extended
<protocolInfo extend="yes" />
@oznek
oznek / gist:86575e6a68ab55588ecb
Created January 27, 2015 04:03
Mediatomb Mark Video as Played Settings
<mark-played-items enabled="yes" suppress-cds-updates="yes">
<string mode="prepend">*</string>
<mark>
<content>video</content>
</mark>
</mark-played-items>
@oznek
oznek / gist:0cd88b7de5a686f566eb
Created January 27, 2015 04:00
Mediatomb Thumbnail Generation Settings
<ffmpegthumbnailer enabled="yes">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
</ffmpegthumbnailer>
@oznek
oznek / build-mkv-with-subtitles
Created April 8, 2014 21:43
Build MKV video with subtitles inside
#!/bin/bash
# Build MKV file with subtitles inside
# Author: Kenzo Okamura
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,