diff options
author | Florian Pritz <f-p@gmx.at> | 2008-12-01 20:51:14 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2008-12-01 20:51:14 +0100 |
commit | 915a6da8b9fc8db6044a8a8676fdc64691f0b4ab (patch) | |
tree | 5bec82c8c931af9819ffba1e3aa27fde0983eed5 | |
parent | e894be68be85309bd7e441b765fdfd4f3a92bd51 (diff) | |
download | bin-915a6da8b9fc8db6044a8a8676fdc64691f0b4ab.tar.gz bin-915a6da8b9fc8db6044a8a8676fdc64691f0b4ab.tar.xz |
hopefully fixed timeout bug in ssh-mount. added 2 scripts
-rwxr-xr-x | kernelver.py | 10 | ||||
-rwxr-xr-x | ossplay.sh | 8 | ||||
-rwxr-xr-x | ssh-mount.sh | 6 |
3 files changed, 21 insertions, 3 deletions
diff --git a/kernelver.py b/kernelver.py new file mode 100755 index 0000000..73dd696 --- /dev/null +++ b/kernelver.py @@ -0,0 +1,10 @@ +#!/usr/bin/python +import urllib2, re + +url = urllib2.urlopen('http://www.kernel.org') +html = url.read() +url.close() + +table = re.search("""<table class="kver">.*?<td>(?P<kertext>.*?)&.*?</td>.*?<td><b><a href=".*?">(?P<kerver>.*?)</a></b></td>""", html, re.S) +print table.group('kertext'), table.group('kerver') + diff --git a/ossplay.sh b/ossplay.sh new file mode 100755 index 0000000..7d81f5c --- /dev/null +++ b/ossplay.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +soundfile="$1" +vmix_to_lower="vmix0.pcm9" + +ossmix ${vmix_to_lower} 18 +ossplay "${soundfile}" +ossmix ${vmix_to_lower} 25 diff --git a/ssh-mount.sh b/ssh-mount.sh index 91d324c..481d61c 100755 --- a/ssh-mount.sh +++ b/ssh-mount.sh @@ -3,16 +3,16 @@ if [ "$1" = "" ] || [ "$1" = "-h" ]; then echo -e "${blue}Usage:$NC mount-ftp <server_string>"; - echo -e "${green}Servers:$NC ipx"; + echo -e "${green}Servers:$NC ipx, wf"; exit 1 else case $1 in ipx) - sshfs web0@nevera: -p 22222 ${HOME}/workspace/ipx_ssh && + sshfs web0@nevera: -o reconnect -p 22222 ${HOME}/workspace/ipx_ssh && echo -e "${GREEN}IPX mounted.$NC" ;; wf) - sshfs stem47@stem47.loomes.net: -p 22 ${HOME}/workspace/wf_ssh && + sshfs stem47@stem47.loomes.net: -o reconnect -p 22 ${HOME}/workspace/wf_ssh && echo -e "${GREEN}WF mounted.$NC" ;; *) echo -e "${RED}Error:$NC Unknown Server" ;; |