Skip to content

Instantly share code, notes, and snippets.

View daslicht's full-sized avatar

Marc Wensauer daslicht

View GitHub Profile
The idea is to create a radio streaming solution
which supplies the clients with song specific information.
The source file should be a prerecorded DJ mix >9h which is essentially a
big audio file to warrant seamless clickfree playback.
The song info could be stored in a DB , something like this:
start end ArtistName SongName SongID
0 1100 AnSolas&LightRocker SilkyWay 0001
//in main app:
require('./routes').init(app);
//index.js in folder /routes
module.exports =
{
init:function(app){
require('./create')(app);
require('./read')(app);
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<title>iScroll demo: Snap to element</title>
<?php
namespace ME\MainPageBundle\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Form\Form;
class FormErrorResponse extends JsonResponse {
public function __construct(Form $form, $status = 400, $headers = array()) {
$errors = $this->getFormErrors($form);
@daslicht
daslicht / gist:5555445
Created May 10, 2013 16:13
node proxy server test
var http =
util = require('util'),
http = require('http'),
colors = require('colors'),
httpProxy = require('http-proxy');
try {
var io = require('socket.io'),
client = require('socket.io-client');
@daslicht
daslicht / gist:5613454
Created May 20, 2013 16:37
Updated Silverstripe Framework Composer.json
{
"name": "Silverstripe Framework",
"description": "Silverstripe Framework distribution",
"require": {
"silverstripe/framework": "3.1.*@dev"
}
}
prod:
rm -rf ./bundle
mrt bundle bundle.tgz > /dev/null
tar -xzf bundle.tgz
rm -r bundle/server/node_modules/fibers
cd bundle/server && npm install fibers@1.0.0
clean:
rm -f ./bundle.tgz
rm -rf ./bundle
Last login: Fri Jul 5 10:36:39 on console
You have new mail.
daslicht:~ daslicht$ ssh radio@ansolas.com
radio@ansolas.com's password:
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 2.6.32-042stab078.27 x86_64)
* Documentation: https://help.ubuntu.com/
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
#!/usr/bin/liquidsoap
# Log to stdout
set("log.file",false)
set("log.stdout",true)
set("log.level",4)
# Initial playlist
#cue = "AnSolas&LightRocker-LiveSet2012.cue"
#radio = cue_cut(mksafe(playlist(cue)))
radio@s17063954:~$ liquidsoap script.liq
2013/07/05 14:22:34 >>> LOG START
2013/07/05 14:22:33 [protocols.external:3] Didn't find "ufetch".
2013/07/05 14:22:33 [protocols.external:3] Found "/usr/bin/wget".
2013/07/05 14:22:33 [main:3] Liquidsoap 1.0.0
2013/07/05 14:22:33 [main:3] Using: graphics=[distributed with Ocaml] pcre=6.2.2 dtools=0.2.2 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.3 vorbis=0.6.1 speex=0.2.0 mad=0.4.4 flac=0.1.0 flac.ogg=0.1.0 dynlink=[distributed with Ocaml] lame=0.3.1 gstreamer=0.1.0 voaacenc=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.4 bjack=0.1.3 alsa=0.2.1 ao=0.2.0 samplerate=0.1.1 taglib=0.2.0 magic=0.7.3 camomile=0.8.3 faad=0.3.0 soundtouch=0.1.7 portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.0 sdl=0.8.0 camlimages=4.0.0 lo=0.1.0 yojson=1.0.2 gd=1.0a5
2013/07/05 14:22:33 [dynamic.loader:3] Could not find dynamic module for aacplus encoder.
2013/07/05 14:22:33 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/pl