Skip to content

Instantly share code, notes, and snippets.

View bandaangosta's full-sized avatar
🌎

José L. Ortiz bandaangosta

🌎
View GitHub Profile
@hwgao
hwgao / my_logger.py
Created May 21, 2014 08:20
Terminator plugin -- log the output of the terminator into a file with the current time as the default file name and with the time stamp on each line
#!/usr/bin/python
# Plugin by Sinan Nalkaya <sardok@gmail.com>
# See LICENSE of Terminator package.
""" logger.py - Terminator Plugin to log 'content' of individual
terminals """
import os
import sys
@vunb
vunb / ffmpeg-convert-mp3-to-wave
Created November 7, 2013 04:52
Convert mp3 to wave format using ffmpeg
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav
# To convert all mp3 files in a directory in Linux:
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done
# Or Windows:
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav