Skip to content

Instantly share code, notes, and snippets.

View faroncoder's full-sized avatar
:octocat:
coding for greater purpose

Jeff Panasuik faroncoder

:octocat:
coding for greater purpose
View GitHub Profile
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
/**
* Copyright 2006 Paul Querna
* (modified by Artur Bodera 2009, see http://tperspective.blogspot.com/2009/02/apache-flv-streaming-done-right.html)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@faroncoder
faroncoder / _kevin_lockwood_q.txt
Created December 7, 2015 02:04
Android created Gist
...am listening...