Skip to content

Instantly share code, notes, and snippets.

@ggarnier
ggarnier / gist:1158192
Created August 19, 2011 22:25
Remove undesired audio tracks from a video file
# extracted from http://superuser.com/questions/56093/remove-audio-stream-from-xvid-files
# replace -aid value with the audio track number you wish to keep
mencoder orig.avi -o new.avi -oac copy -ovc copy -aid 1
@ggarnier
ggarnier / tga-to-jpg.sh
Created December 10, 2010 13:34
Batch conversion from tga to jpg
#!/bin/bash
# Batch conversion from tga to jpg
# Author: Guilherme Garnier - http://blog.guilhermegarnier.com
# Adapted from:
# http://linux.strangegamer.com/index.php?title=Converting_A_directory_of_TGA%27s_To_JPG
# http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
#!/usr/bin/env ruby
#
# Put this script in your PATH and download from onemanga.com like this:
# onemanga_downloader.rb Bleach [chapter number]
#
# You will find the downloaded chapters under $HOME/Documents/OneManga/Bleach
#
# If you run this script without arguments, it will check your local manga downloads
# and check if there are any new chapters
#