initial commit

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2022-01-09 17:30:53 -05:00
commit df4823863f
11 changed files with 190 additions and 0 deletions

4
bin/run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
echo "Running $@..."
nohup $@ 2>&1 >/dev/null &

3
bin/studentcpyinto Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
source ~/bin/studentvars
scp $1 $UW_SERVER:$2

3
bin/studentcpyoutof Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
source ~/bin/studentvars
scp -r $UW_SERVER:$1 $2

5
bin/studentenv Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/zsh
source ~/bin/studentvars
ssh $UW_SERVER -t 'zsh'

19
bin/studentlatex Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <tex file> [other required files...]"
exit 1
fi
source ~/studentvars
TEX_FILE=$1
PDF_FILE=${TEX_FILE%.tex}.pdf
for FILE in "$@"; do
scp $FILE "${UW_SERVER}:~/cs240/${FILE}"
done
ssh $UW_SERVER "cd ~/latex; pdflatex ${TEX_FILE}"
scp "${UW_SERVER}:~/latex/${PDF_FILE}" ${PDF_FILE}

5
bin/studentmnt Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source ~/bin/studentvars
mkdir -p ~/studentenv
sshfs $UW_SERVER: ~/studentenv

3
bin/studentvars Executable file
View file

@ -0,0 +1,3 @@
UW_USER=n2sood
UW_SERVER="${UW_USER}@linux.student.cs.uwaterloo.ca"