Skip to content

Instantly share code, notes, and snippets.

View dcrockwell's full-sized avatar
💼
Seeking new opportunities

D. C. Rockwell dcrockwell

💼
Seeking new opportunities
View GitHub Profile
@romanlv
romanlv / avi_to_mp3.sh
Last active February 17, 2016 09:50
extract audio from mp4 files and convert it to mp3 format
#!/bin/bash
#
# extracts audio from all videos in current folder and saves in mp3
# based on http://ubuntuforums.org/showthread.php?t=1411144
#
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
@pguillory
pguillory / gist:729616
Created December 5, 2010 23:51
Hooking into Node.js stdout
var util = require('util')
function hook_stdout(callback) {
var old_write = process.stdout.write
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
write.apply(process.stdout, arguments)
callback(string, encoding, fd)
}