#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/swamp # # (find-file "/-:incal@srv.dataswamp.org:.forward") # (find-file "/-:incal@srv.dataswamp.org:.fdm.conf") # # (find-file "/-:incal@srv.dataswamp.org:.zprofile") # (find-file "/-:incal@srv.dataswamp.org:.zshenv") # (find-file "/-:incal@srv.dataswamp.org:.zshrc") # # (find-file "/-:incal@srv.dataswamp.org:public_html/index.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/index.css") # # (find-file "/-:incal@srv.dataswamp.org:public_html/cols/www/index.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/cols/www/style.css") # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/index.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/rss.xml") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/global.css") # # https://dataswamp.org/~incal/blog/hits.txt # (find-file "/-:incal@srv.dataswamp.org:piles-old") # (find-file "/-:incal@srv.dataswamp.org:piles-pts") # (find-file "/-:incal@srv.dataswamp.org:show") # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house-pulley.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house-rooftop.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/winter-video.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tradkojan-i-blodstensskogen.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/blodstensskogen-nature-reserve.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/summer-2021.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/climbing-gear/climbing-gear.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/climbing-gear/harness.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/box-10/top-10-modern-boxers.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/box-10/marco-antonio-barrera.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/ums/index.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/ums/ums-upgraded-photos.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/ums/ums.css") swamp_system=dataswamp.org swamp_dir=~/swamp # -a, --archive, archive mode; equals -rlptgoD ;) # -L, --copy-links, transform symlinks into referent files/dirs rsync_opts=-aL # ssh swamp () { clean ssh -o ServerAliveInterval=120 $swamp_system } swamp-get () { local from=$1 local to=${2:-.} rsync $rsync_opts $swamp_system:$from $to } swamp-cp () { rsync $rsync_opts $@ $swamp_system: } swamp-cp-hp () { swamp-cp-to-hp ~/public_html/ } swamp-cp-to-hp () { rsync $rsync_opts $@ ${swamp_system}:public_html/ } swamp-cp-emacs () { rsync $rsync_opts ~/.emacs-swamp ${swamp_system}:.emacs rsync $rsync_opts ~/.emacs.d/emacs-init-swamp/ ${swamp_system}:.emacs.d/emacs-init/ } swamp-cos () { swamp-cp ${swamp_dir}/.tmux.conf ~/.mailrc swamp-cp-hp swamp-cp-emacs swamp-cp-to-hp ${swamp_dir}/swamp-imgs swamp-cp ${swamp_dir}/swamp-big } alias cos-swamp=swamp-cos # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/sth.py") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/py/hello_world.py") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/elem") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/hist") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/junior") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/senior") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/stats") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/scripts/url2title") # (find-file "/-:incal@srv.dataswamp.org:botsrc") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/data/ascii/fireworks.txt") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/data/ascii/cred.txt") # (find-file "/-:incal@srv.dataswamp.org:public_html/sth/data/ascii/robot.txt") # (find-file "/-:incal@srv.dataswamp.org:public_html/COMP-HIST") # (find-file "/-:incal@srv.dataswamp.org:public_html/docs/dataswamp.7")