-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
012043a
commit 26b8702
Showing
7 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
UA_NET_ID=your_net_id # first initial + last name | ||
LECTURA_PASSWORD=your_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.env | ||
tests/**/skip*.sm* | ||
|
||
**repo-link.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
source ./.env | ||
|
||
if [ -z $UA_NET_ID ]; then | ||
echo "Set UA_NET_ID in .env" | ||
exit 1 | ||
fi | ||
|
||
if [ -z $LECTURA_PASSWORD ]; then | ||
echo "Set LECTURA_PASSWORD in .env" | ||
exit 1 | ||
fi | ||
|
||
# Copy lectura password to clipboard | ||
echo $LECTURA_PASSWORD | clipboard | ||
|
||
echo -e "\nPassword copied to clipboard" | ||
echo "Connecting to lectura..." | ||
ssh $UA_NET_ID@lectura.cs.arizona.edu |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
source ./.env | ||
|
||
if [ -z $1 ]; then | ||
echo "No file provided" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f $1 ]; then | ||
echo "File does not exist" | ||
exit 1 | ||
fi | ||
|
||
if [ -z $LECTURA_PASSWORD ]; then | ||
echo "Set LECTURA_PASSWORD in .env" | ||
exit 1 | ||
fi | ||
|
||
# Copy lectura password to clipboard | ||
echo $LECTURA_PASSWORD | clipboard | ||
|
||
echo -e "\nPassword copied to clipboard" | ||
|
||
scp $1 $UA_NET_ID@lectura.cs.arizona.edu:~/submit-lectura |
Empty file.