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 ruby | |
# License: BSD-0-clause | |
VIDEO_EXTS = %w(.mkv .avi .mp4) | |
SUBTITLE_EXTS = %w(.ssa .ass .srt) | |
if ARGV.empty? | |
puts "Automatic subtitle file renamer by [email protected]" | |
puts "Usage: #{$0} *.ssa *.mkv" | |
puts " or: DRY_RUN=1 #{$0} *.ssa *.mkv" |
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
#!/bin/bash | |
# Copyright 2010 Eric Ryan Harrison <[email protected]> | |
# Inspired by: | |
# http://daniel.haxx.se/blog/2010/12/14/add-latency-to-localhost/ | |
if [ -n "$1" ] | |
then | |
if [ "$1" = "off" ] | |
then | |
tc qdisc del dev lo root |