-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathurl-cards.sh
More file actions
executable file
·41 lines (36 loc) · 1.06 KB
/
url-cards.sh
File metadata and controls
executable file
·41 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Leave in the file url-cards.ps a printable document consisting of
# $nup blocks of url and password. This is useful for printing out
# (single-sided!) and handing out at a workshop that involves giving
# the participants EC2 instances. The cards are ordered so that
# cutting the pages will produce sequential stacks.
set -eu
nup=3
pages=13
echo "" > url-cards.txt
(for page in `seq $pages`
do (for item in `seq $nup`
do
number=$(($page + $pages * ($item - 1)))
if [ "$item" -gt "1" ]; then
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
echo "" >> url-cards.txt
fi
cat <<EOF >> url-cards.txt
MIT Probabilistic Computing Project
DARPA PPAML Summer School
Washington, DC, 2017
https://school-$number.stack.probcomp.net
Pass phrase: `cat jupyter-passwords/school-$number.passwd`
EOF
done)
echo "" >> url-cards.txt
done)
enscript -fCourier-Bold16 url-cards.txt -o url-cards.ps -b ''