Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Two new scripts (and some markup)
  • Loading branch information
kthoden committed Mar 9, 2020
1 parent 45b5bc6 commit 36d1493
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
@@ -1,6 +1,8 @@
# Various small files

* TeXShopShortcuts.plist is a selection of shortcuts for TeXShop
* jsonfixer.py: Convert fixtures with embededd EOA1.0 design to embedded EOA2.0 design.
* showpickle.py: Pretty print contents of pickle file
* eoa.rc: Some useful shell functions. Source them from your shell rc file. Only tested on zsh.
* `TeXShopShortcuts.plist` is a selection of shortcuts for TeXShop
* `jsonfixer.py`: Convert fixtures with embededd EOA1.0 design to embedded EOA2.0 design.
* `showpickle.py`: Pretty print contents of pickle file
* `eoa.rc`: Some useful shell functions. Source them from your shell rc file. Only tested on zsh.
* `pulldjango.sh`: Create static versions using `wget`.
* `updatestatic.sh`: Write files to where the webserver finds them.
9 changes: 9 additions & 0 deletions pulldjango.sh
@@ -0,0 +1,9 @@
#!/usr/bin/zsh

wget -P /home/kthoden/static/eoa --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9005
wget -P /home/kthoden/static/eos --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9010
python3 /home/kthoden/src/eoa_makestatic/makestatic.py /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010
wget -P /home/kthoden/static/mprl --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9015
python3 /home/kthoden/src/eoa_makestatic/makestatic.py /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015

echo Finito
7 changes: 7 additions & 0 deletions updatestatic.sh
@@ -0,0 +1,7 @@
#!/usr/bin/zsh

sudo rsync -Pazy /home/kthoden/static/eoa/eoa2-production.mpiwg-berlin.mpg.de:9005/ /var/www/eoa/html
sudo rsync -Pazy --exclude index-bak.html /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010/ /var/www/eos/html
sudo rsync -Pazy --exclude index-bak.html /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015/ /var/www/mprl/html

echo Finito

0 comments on commit 36d1493

Please sign in to comment.