diff options
author | katherine <shmibs@airen-no-jikken.icu> | 2018-11-28 20:21:32 -0700 |
---|---|---|
committer | katherine <shmibs@airen-no-jikken.icu> | 2018-11-28 20:21:32 -0700 |
commit | 4263d775580e6e2bf3122eb6c24d601fb34a2354 (patch) | |
tree | 48e9d3bc848861ebbc95bb3e80c62cac4a99df48 /.config/init/funcs | |
parent | a61d45f4244866e12ded168fc8e224c3685a4a36 (diff) | |
download | dotfiles-4263d775580e6e2bf3122eb6c24d601fb34a2354.tar.gz |
migrate home site domain
Diffstat (limited to '.config/init/funcs')
-rwxr-xr-x | .config/init/funcs/send | 6 | ||||
-rwxr-xr-x | .config/init/funcs/ssh-scrot | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/.config/init/funcs/send b/.config/init/funcs/send index db74680..9afb66a 100755 --- a/.config/init/funcs/send +++ b/.config/init/funcs/send @@ -22,18 +22,18 @@ for i in "$@"; do || { echo "file '$i' not found"; return 1 } done -scp "$@" shmibbles.me:http/tmp/ 2>/dev/null \ +scp "$@" airen-no-jikken.icu:http/tmp/ 2>/dev/null \ || { echo "sending files failed"; return 1 } for name in "$@" do basename=${name:t} - ssh shmibbles.me "cd http/tmp; chmod g+r,g-w,o-rw \"${basename//\"/\\\"}\"" \ + ssh airen-no-jikken.icu "cd http/tmp; chmod g+r,g-w,o-rw \"${basename//\"/\\\"}\"" \ || { echo "making '$name' readable failed"; return 1 } { - printf "%s" 'https://shmibbles.me/tmp/' + printf "%s" 'https://airen-no-jikken.icu/tmp/' for c in "${(s::)basename}"; do if [[ "${escapes[$c]}" == "" ]]; then printf "%s" "$c" diff --git a/.config/init/funcs/ssh-scrot b/.config/init/funcs/ssh-scrot index 1e6a90c..8fa243c 100755 --- a/.config/init/funcs/ssh-scrot +++ b/.config/init/funcs/ssh-scrot @@ -14,13 +14,13 @@ fi local date=$(date +'%Y-%m-%d') local folder="http/img/scrot" -ssh shmibbles.me "mkdir -p $folder/$date" +ssh airen-no-jikken.icu "mkdir -p $folder/$date" if [[ "${?#0}" != "" ]]; then return 1 fi -ssh shmibbles.me "cd $folder; rm current 2>/dev/null; ln -s $date current" +ssh airen-no-jikken.icu "cd $folder; rm current 2>/dev/null; ln -s $date current" for i in {3..1}; do echo -n "$i " @@ -33,12 +33,12 @@ sleep .1 scrot /tmp/$name.png convert -scale 250x /tmp/$name.png /tmp/${name}_small.png -scp /tmp/$name.png /tmp/${name}_small.png shmibbles.me:http/img/scrot/$date +scp /tmp/$name.png /tmp/${name}_small.png airen-no-jikken.icu:http/img/scrot/$date -echo "https://shmibbles.me/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection clipboard -echo "https://shmibbles.me/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection primary -echo "https://shmibbles.me/img/scrot/$date/${name}_small.png" | tr -d '\n' | xclip -i -selection clipboard -echo "https://shmibbles.me/img/scrot/$date/${name}_small.png" | tr -d '\n' | xclip -i -selection primary +echo "https://airen-no-jikken.icu/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection clipboard +echo "https://airen-no-jikken.icu/img/scrot/$date/$name.png" | tr -d '\n' | xclip -i -selection primary +echo "https://airen-no-jikken.icu/img/scrot/$date/${name}_small.png" | tr -d '\n' | xclip -i -selection clipboard +echo "https://airen-no-jikken.icu/img/scrot/$date/${name}_small.png" | tr -d '\n' | xclip -i -selection primary echo 'sent!' |