summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-01-15 19:00:45 +0100
committerFlorian Pritz <f-p@gmx.at>2009-01-15 19:00:45 +0100
commit1b1859915c8a6d8ab0f8d1f3b4439eaef2d2a272 (patch)
tree4dc6e85b8407d98475636fddd3ee59946fd504fb
parent323816ffd1e4d78ba5ac596de5f6c36b48c31434 (diff)
downloadbin-1b1859915c8a6d8ab0f8d1f3b4439eaef2d2a272.tar.gz
bin-1b1859915c8a6d8ab0f8d1f3b4439eaef2d2a272.tar.xz
updated
-rwxr-xr-xdownload.sh3
-rwxr-xr-xssh-mount.sh19
-rwxr-xr-xssh-unmount.sh4
-rwxr-xr-xxup.sh8
4 files changed, 24 insertions, 10 deletions
diff --git a/download.sh b/download.sh
new file mode 100755
index 0000000..b1fe9f3
--- /dev/null
+++ b/download.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd ${HOME}/drop
+urxvtc -geometry 70x1 -e aria2c $@
diff --git a/ssh-mount.sh b/ssh-mount.sh
index 601406b..00daa4e 100755
--- a/ssh-mount.sh
+++ b/ssh-mount.sh
@@ -1,26 +1,33 @@
#!/bin/sh
-
if [ "$1" = "" ] || [ "$1" = "-h" ]; then
- echo -e "${blue}Usage:$NC ssh-mount <server_string>";
+ echo -e "${blue}Usage:$NC ssh-mount <server>";
echo -e "${green}Servers:$NC wf, nevera-web, nevera-flo, df";
exit 1
else
case $1 in
nevera-flo)
- sshfs flo@nevera: -o reconnect -p 22222 ${HOME}/workspace/nevera/flo &&
+ DIR="${HOME}/workspace/nevera/flo"
+ mkdir -p "${DIR}"
+ sshfs flo@nevera: -o reconnect -p 22222 "${DIR}" &&
echo -e "${GREEN}Nevera: /home/flo mounted.$NC"
;;
nevera-web)
- sshfs web0@nevera: -o reconnect -p 22222 ${HOME}/workspace/nevera/web &&
+ DIR="${HOME}/workspace/nevera/web"
+ mkdir -p "${DIR}"
+ sshfs web0@nevera: -o reconnect -p 22222 "${DIR}" &&
echo -e "${GREEN}Nevera: web mounted.$NC"
;;
df)
- sshfs 105012-ftp@seitznet2.at: -o reconnect -p 22 ${HOME}/workspace/df_ssh &&
+ DIR="${HOME}/workspace/df_ssh"
+ mkdir -p "${DIR}"
+ sshfs 105012-ftp@seitznet2.at: -o reconnect -p 22 "${DIR}" &&
echo -e "${GREEN}DF mounted.$NC"
;;
wf)
- sshfs stem47@stem47.loomes.net: -o reconnect -p 22 ${HOME}/workspace/wf_ssh &&
+ DIR="${HOME}/workspace/wf_ssh"
+ mkdir -p "${DIR}"
+ sshfs stem47@stem47.loomes.net: -o reconnect -p 22 "${DIR}" &&
echo -e "${GREEN}WF mounted.$NC"
;;
*) echo -e "${RED}Error:$NC Unknown Server" ;;
diff --git a/ssh-unmount.sh b/ssh-unmount.sh
index 1c4344e..5083c7b 100755
--- a/ssh-unmount.sh
+++ b/ssh-unmount.sh
@@ -1,8 +1,12 @@
#!/bin/sh
fusermount -uq ${HOME}/workspace/nevera/web
+rmdir ${HOME}/workspace/nevera/web &> /dev/null
fusermount -uq ${HOME}/workspace/nevera/flo
+rmdir ${HOME}/workspace/nevera/flo &> /dev/null
fusermount -uq ${HOME}/workspace/df_ssh
+rmdir ${HOME}/workspace/df_ssh &> /dev/null
fusermount -uq ${HOME}/workspace/wf_ssh
+rmdir ${HOME}/workspace/wf_ssh &> /dev/null
echo -e "${GREEN}Unmounted.";
diff --git a/xup.sh b/xup.sh
index 5a271eb..c548ad4 100755
--- a/xup.sh
+++ b/xup.sh
@@ -1,8 +1,8 @@
#!/bin/sh
#----------------------------------------------------#
# File: xup.sh
-# Version: 0.1.3
-# Date: 2009-01-12
+# Version: 0.1.4
+# Date: 2009-01-14
# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
# Upload file to XUP, copy URL to clipboard and
# save to historyfile
@@ -26,13 +26,13 @@ DIR="$(dirname "$1")"
cd "$DIR"
URLS=$(curl -# -F "F1=@$FILE" -L "http://www.xup.in/xtrans.php" -H "Expect: ")
-DL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/dl,.{8}/$FILE/\"" | sed "s#\"##g")
+DL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/dl,.{8}/" | sed "s#\"##g")
DEL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/kill,.{8},.{10}/\"" | sed "s#\"##g")
echo $(date) >> "$XUPHIST"
echo "$PWD/$FILE" >> "$XUPHIST"
echo $DL_URL >> "$XUPHIST"
-echo -n $DL_URL | xclip
+echo -n $DL_URL | nohup >/dev/null 2>&1 xclip
echo -n $DL_URL
echo $DEL_URL >> "$XUPHIST"
echo "" >> "$XUPHIST"