Skip to content

Instantly share code, notes, and snippets.

@sushain97
Last active February 14, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sushain97/2f70e89b19b618318ce82ac3a317dd19 to your computer and use it in GitHub Desktop.
Save sushain97/2f70e89b19b618318ce82ac3a317dd19 to your computer and use it in GitHub Desktop.
rm -rf /tmp/handins/*; mkdir -p /tmp/handins; cd /afs/cs.cmu.edu/academic/class/15150-s17/autolab/homework3/handin; for tarfile in *.tar; do tar -xf "$tarfile" -C /tmp/handins "code/hw03.sml" 2> /dev/null; mv /tmp/handins/code/hw03.sml "/tmp/handins/$tarfile.sml"; done; rm -r /tmp/handins/code;
python3 ~/private/filter.py /tmp/handins
~/private/moss -l ml -b ~/private/15150-TA/asgn/hw/03/src/dist/hw03.sml /tmp/handins/* && rm -rf /tmp/handins/*
cd /afs/cs.cmu.edu/academic/class/15150-s17/autolab/homework3/handin; rm -rf /tmp/handins/*; mkdir -p /tmp/handins; for tarfile in *.tar; do tar -xf "$tarfile" -C /tmp/handins hw03.pdf 2> /dev/null; pdftotext -q /tmp/handins/hw03.pdf "/tmp/handins/$tarfile.txt"; rm /tmp/handins/hw03.pdf; done;
python3 ~/private/filter.py /tmp/handins
cd ~/private/15150-TA/asgn/hw/03/writeup/ && make && pdftotext bin/hw03-handout.pdf ~/private/hw03-handout.txt
~/private/moss -l ascii -b ~/private/hw03-handout.txt /tmp/handins/* && rm -rf /tmp/handins/*
rm -rf /tmp/handins/*; mkdir -p /tmp/handins; cd /afs/cs.cmu.edu/academic/class/15150-s17/autolab/homework11/handin; for tarfile in *.tar; do tar -xf "$tarfile" -C /tmp/handins "code/*" 2> /dev/null; cat /tmp/handins/code/**/*.sml > "/tmp/handins/$tarfile.sml"; rm -rf /tmp/handins/code; done; rm -r /tmp/handins/code;
python3 ~/private/filter.py /tmp/handins
cat ~/private/15150-TA/asgn/hw/11/src/dist/**/*.sml > /tmp/hw11-dist.sml
~/private/moss -l ml -b /tmp/hw11-dist.sml /tmp/handins/* && rm -rf /tmp/handins/*
rm -rf /tmp/handins/*; mkdir -p /tmp/handins; cd /afs/cs.cmu.edu/academic/class/15150-f16/autolab/homework11/handin; for tarfile in *.tar; do tar -xf "$tarfile" -C /tmp/handins "code/*" 2> /dev/null; cat /tmp/handins/code/**/*.sml > "/tmp/handins/$tarfile.sml"; rm -rf /tmp/handins/code; done; rm -r /tmp/handins/code;
python3 ~/private/filter.py /tmp/handins
cat ~/private/15150-TA/asgn/hw/11/src/dist/**/*.sml > /tmp/hw11-dist.sml
~/private/moss -l ml -b /tmp/hw11-dist.sml /tmp/handins/* && rm -rf /tmp/handins/*
wget --user-agent=Mozilla -E -r -p -l 2 -e robots=off -k http://moss.stanford.edu/results/90032303
tar cf moss.tar moss.stanford.edu/
unbuffer grep -i -m1 /tmp/handins/*.txt -e "contradiction" | tee /dev/tty | cut -d '@' -f 1 | cut -d '/' -f 4 | sort | uniq;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment