aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias3
1 files changed, 2 insertions, 1 deletions
diff --git a/alias b/alias
index 73b47ed..0f4127b 100644
--- a/alias
+++ b/alias
@@ -219,6 +219,8 @@ alias ptt='ssh bbsu@ptt.cc'
219alias topo='ssh topo.tw' 219alias topo='ssh topo.tw'
220alias geothings-test='ssh geothings@test.geothings.tw' 220alias geothings-test='ssh geothings@test.geothings.tw'
221alias demo='ssh -i ~/.ssh/ec2-nlsc-tileservice.pem ubuntu@demo.geosurvey.io' 221alias demo='ssh -i ~/.ssh/ec2-nlsc-tileservice.pem ubuntu@demo.geosurvey.io'
222alias demo2='ssh -i ~/.ssh/ec2-nlsc-tileservice.pem ubuntu@dev.geosurvey.io'
223alias cool='ssh pham@10.0.0.2'
222 224
223# Android 225# Android
224alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' 226alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_'
@@ -367,7 +369,6 @@ alias cdtrash='cd ~/.local/share/Trash'
367trash() { 369trash() {
368 mv $@ ~/.local/share/Trash 370 mv $@ ~/.local/share/Trash
369} 371}
370transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://topo.tw/up/$file_name"|tee /dev/null;fi;}
371 372
372# task 373# task
373alias tk='task' 374alias tk='task'