This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ forever logs out.js -f -n 5 | |
data: out.js:9161 - Mon, 27 Aug 2012 00:44:29 GMT one | |
data: out.js:9161 - Mon, 27 Aug 2012 00:44:31 GMT one | |
data: out.js:9161 - Mon, 27 Aug 2012 00:44:32 GMT one | |
data: out.js:9161 - Mon, 27 Aug 2012 00:44:34 GMT one | |
data: out.js:9161 - Mon, 27 Aug 2012 00:44:35 GMT one | |
data: out.js:9164 - Mon, 27 Aug 2012 00:44:29 GMT two | |
data: out.js:9164 - Mon, 27 Aug 2012 00:44:30 GMT two | |
data: out.js:9164 - Mon, 27 Aug 2012 00:44:32 GMT two | |
data: out.js:9164 - Mon, 27 Aug 2012 00:44:33 GMT two |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: Showing logs for out.js | |
data: Mon, 27 Aug 2012 00:32:51 GMT one | |
data: Mon, 27 Aug 2012 00:32:53 GMT one | |
data: Mon, 27 Aug 2012 00:32:54 GMT one | |
... 97 more lines | |
info: Showing logs for out.js | |
data: Mon, 27 Aug 2012 00:32:57 GMT two | |
data: Mon, 27 Aug 2012 00:32:59 GMT two | |
data: Mon, 27 Aug 2012 00:33:00 GMT two | |
...97 more lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forever.tail = function (target, options, callback) { | |
if (!callback && typeof options === 'function') { | |
callback = options; | |
options.length = 0; | |
options.stream = false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function copy_doc(doc_src, doc_dest, opts, callback) { | |
if(typeof opts === "function") { | |
callback = opts; | |
opts = {}; | |
} | |
var params = { db: db_name, doc: doc_src, method: "COPY" | |
, headers: {"Destination": doc_dest} }; | |
head_doc(doc_dest, function (e,b,h) { | |
if (!e && opts.overwrite) { | |
params.headers["Destination"] += "?rev=" + h.etag.substring(1, h.etag.length - 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Ffmpeg2theora < Formula | |
homepage 'http://v2v.cc/~j/ffmpeg2theora/' | |
url 'http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.28.tar.bz2' | |
md5 '31e389bfa0719f489af38b6fb2bd0a1f' | |
head 'http://svn.xiph.org/trunk/ffmpeg2theora' | |
depends_on 'pkg-config' => :build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
def ffplay? | |
ARGV.include? '--with-ffplay' | |
end | |
class Ffmpeg < Formula | |
homepage 'http://ffmpeg.org/' | |
url 'http://ffmpeg.org/releases/ffmpeg-0.11.tar.bz2' | |
sha1 '1aa3443c20b1c5d132d1fe06de7cc949a7219edd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
def ffplay? | |
ARGV.include? '--with-ffplay' | |
end | |
class Ffmpeg < Formula | |
homepage 'http://ffmpeg.org/' | |
url 'http://ffmpeg.org/releases/ffmpeg-0.11.tar.bz2' | |
sha1 '1aa3443c20b1c5d132d1fe06de7cc949a7219edd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require('child_process').spawn, | |
temp = require('temp'); | |
Audio.prototype.slowDown = function rb(options, input, cb) { | |
var speed = options.speed, | |
s = (this.isNumeric(speed) ? Math.pow(speed, -1) : | |
this.error('speed needs a number')), | |
slow = null; | |
console.log('if this prints it will work'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var Audio = require('./lib/audio'), | |
argv = require('optimist') | |
.options('i', { alias: 'input', }) | |
.options('o', { alias: 'output', }) | |
.argv | |
; | |
var a = new Audio(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var Audio = require('./lib/audio'), | |
fs = require('fs'), | |
argv = require('optimist'); | |
var a = new Audio(); | |
var output = fs.createWriteStream('slow.wav'); | |
var cb = function (err, res) { |