The little things give you away... A collection of various small helper stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
1.4 KiB

  1. #!/bin/bash
  2. mkdir -p /tmp/snscrape
  3. echo 'snscrape-dev' > /tmp/snscrape/.python-version
  4. scriptpath="$(cd "$(dirname "$0")"; pwd -P)"
  5. export PATH="${scriptpath}:${PATH}"
  6. cd /tmp/snscrape
  7. tmux new -s snscrape \
  8. -n "normalise" 'printf "\033]2;%s\033\\" "normalise"; bash' \; \
  9. send-keys -t 'snscrape:normalise' 'pyenv_setup' Enter '# xclip -selection c -o | snscrape-normalise >wiki' Enter '# xclip -selection c <wiki' Enter \; \
  10. new-window -n "prepare" 'printf "\033]2;%s\033\\" "prepare"; bash' \; \
  11. send-keys -t 'snscrape:prepare' '# snscrape-prepare-commands <wiki' Enter \; \
  12. new-window -n "scrape" 'printf "\033]2;%s\033\\" "scrape-facebook"; bash' \; \
  13. send-keys -t 'snscrape:scrape.1' 'pyenv_setup' Enter '# facebook' Enter \; \
  14. split-window -v 'printf "\033]2;%s\033\\" "scrape-instagram"; bash' \; \
  15. send-keys -t 'snscrape:scrape.2' 'pyenv_setup' Enter '# instagram' Enter \; \
  16. split-window -v 'printf "\033]2;%s\033\\" "scrape-twitter"; bash' \; \
  17. send-keys -t 'snscrape:scrape.3' 'pyenv_setup' Enter '# twitter' Enter \; \
  18. select-layout -t 'snscrape:scrape' even-vertical \; \
  19. new-window -n "upload" 'printf "\033]2;%s\033\\" "upload"; bash' \; \
  20. send-keys -t 'snscrape:upload' 'pyenv_setup' Enter '# snscrape-upload' Enter \; \
  21. new-window -n "merge" 'printf "\033]2;%s\033\\" "merge"; bash' \; \
  22. send-keys -t 'snscrape:merge' '# snscrape-wiki-transfer-merge' Enter \; \
  23. new-window -n "cleanup" 'printf "\033]2;%s\033\\" "cleanup"; bash'