The script:
/*global casper:true*/
var casper = require('casper').create({
pageSettings: {
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0"
}| var mongoose = require('mongoose') | |
| , Schema = mongoose.Schema | |
| , db = mongoose.connect('localhost', 'testing_streaming').connection | |
| , Stream = require('stream').Stream | |
| , express = require('express') | |
| /** | |
| * Dummy schema. | |
| */ |
| #!/usr/bin/python2 | |
| USAGESTR = """Usage: fetchsub.py [-l langcode] videofile1 [videofile2 ...] | |
| langcode: chn [default] | |
| eng | |
| sub file will saved in the same directory of each videofile | |
| XXXXXXX.mkv 's sub files will named as: | |
| XXXXXXX.chn.0.srt, XXXXXXX.chn.1.srt, XXXXXXX.chn.2.srt | |
| """ | |
| """Author: sevenever |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: haproxy | |
| # Required-Start: $local_fs $network | |
| # Required-Stop: $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: fast and reliable load balancing reverse proxy | |
| # Description: This file should be used to start and stop haproxy. | |
| ### END INIT INFO |