Skip to content

Instantly share code, notes, and snippets.

View start-stop-example.sh
#!/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 Apr 2, 2015
Keybase Identity Proof
View keybase.md

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 Jan 27, 2015
Mediatomb Protocol Info Extended
View gist:512277f325fa45afab38
<protocolInfo extend="yes" />
@oznek
oznek / gist:86575e6a68ab55588ecb
Created Jan 27, 2015
Mediatomb Mark Video as Played Settings
View gist:86575e6a68ab55588ecb
<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 Jan 27, 2015
Mediatomb Thumbnail Generation Settings
View gist:0cd88b7de5a686f566eb
<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 Apr 8, 2014
Build MKV video with subtitles inside
View build-mkv-with-subtitles
#!/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,