initial commit
Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
commit
df4823863f
11 changed files with 190 additions and 0 deletions
4
bin/run
Executable file
4
bin/run
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Running $@..."
|
||||
nohup $@ 2>&1 >/dev/null &
|
3
bin/studentcpyinto
Executable file
3
bin/studentcpyinto
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
source ~/bin/studentvars
|
||||
scp $1 $UW_SERVER:$2
|
3
bin/studentcpyoutof
Executable file
3
bin/studentcpyoutof
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
source ~/bin/studentvars
|
||||
scp -r $UW_SERVER:$1 $2
|
5
bin/studentenv
Executable file
5
bin/studentenv
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/zsh
|
||||
source ~/bin/studentvars
|
||||
ssh $UW_SERVER -t 'zsh'
|
||||
|
||||
|
19
bin/studentlatex
Executable file
19
bin/studentlatex
Executable 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
5
bin/studentmnt
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
source ~/bin/studentvars
|
||||
mkdir -p ~/studentenv
|
||||
sshfs $UW_SERVER: ~/studentenv
|
||||
|
3
bin/studentvars
Executable file
3
bin/studentvars
Executable file
|
@ -0,0 +1,3 @@
|
|||
UW_USER=n2sood
|
||||
UW_SERVER="${UW_USER}@linux.student.cs.uwaterloo.ca"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue