Skip to content

Commit

Permalink
feat(handouts): update handout sync script
Browse files Browse the repository at this point in the history
Thaw on sync, and include PNG files in upload too
  • Loading branch information
vEnhance committed Jul 12, 2024
1 parent 2e7271c commit 7235207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions handouts/p1ctures/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
p1cture.png
p?????????????????cture.png
3 changes: 2 additions & 1 deletion handouts/sync.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

gsutil -m rsync -r \
-x '\.gitignore$|sync\.sh$|.*\.pkl$|.*\.(aux|bbl|bcf|blg|brf|fdb_latexmk|fls|log|out|nav|pre|pytxcode|pytxmcr|pytxpyg|run\.xml|snm|toc|synctex\.gz|jpg|png)$|.*-[0-9][0-9]?\.(asy|pdf)$' \
-x '\.gitignore$|sync\.sh$|.*\.pkl$|.*\.(aux|bbl|bcf|blg|brf|fdb_latexmk|fls|log|out|nav|pre|pytxcode|pytxmcr|pytxpyg|run\.xml|snm|toc|synctex\.gz|jpg)$|.*-[0-9][0-9]?\.(asy|pdf)$' \
. gs://web.evanchen.cc/handouts/
gsutil -m setmeta -h 'Cache-Control:private, max-age=0, no-transform' "gs://web.evanchen.cc/handouts/**"

0 comments on commit 7235207

Please sign in to comment.