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 | |
# Quick and dirty OpenVPN install script | |
# Tested on debian 5.0 32bit, openvz minimal debian OS template | |
# and Ubuntu 9.04 32 bit minimal, should work on 64bit images as well | |
# Please submit feedback and questions at [email protected] | |
# John Malkowski vpsnoc.com 01/18/2010 | |
WANIF=`ip route get 8.8.8.8 | awk '{ for(f=0;f<NF;f++){if($f=="dev"){print $(f+1);exit;}} }'` |
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/sh | |
# Author: RA <[email protected]> | |
# Author: Chris Yu <[email protected]> | |
USAGE(){ | |
echo "Usage:$(basename $0) [-eng] [-suf] [-togbk] [-toutf8] files..." | |
echo "OPTIONS" | |
echo " -eng : download English subtitle, default is Chinese" | |
echo " -suf : add language suffix in subtitle file name" | |
echo " -togbk : try to convert file content from big5 to gbk with iconv" |