Skip to content

Instantly share code, notes, and snippets.

View gerswin's full-sized avatar
🎯
Focusing

gerswin gerswin

🎯
Focusing
View GitHub Profile
@gerswin
gerswin / app.js
Created November 2, 2015 16:11 — forked from velsa/app.js
Express server used to launch ffmpeg, transcode stream from peerflix and serve it to HTML5 video tag
var express = require('express'),
http = require('http'),
path = require('path'),
child_process = require("child_process");
var app = express();
// Server settings
app.set('port', process.env.PORT || 9999);
app.use(express.favicon());
@gerswin
gerswin / 0_reuse_code.js
Created April 11, 2014 23:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gerswin
gerswin / index.php
Created September 26, 2012 04:38 — forked from splitbrain/index.php
<?php
$OTS = '/usr/bin/ots';
loadurl();
if(!isset($_REQUEST['format']) || $_REQUEST['format'] =! 'text'){
header('Content-Type: text/html; charset=utf-8');
html_header();
form();