|
|
UNIX: Ten Commands (an updated classic)
|
|
|
PRINTING
|
|
|
|
|
|
These commands are for text files only!!! See below for PDFs.
|
|
|
|
BASIC:
|
lpr -P 115 yourfile.py
|
|
|
|
FANCY:
|
enscript -d 115 -M Letter -C -T 3 yourfile.py
|
|
|
|
GREEN:
|
a2ps -P 115 --line-numbers=1 -T 3 yourfile.py (???)
|
|
|
PDFs
|
|
|
|
|
|
Never use lpr on a PDF from the console!!! Never!!! Ever!!!
|
|
|
|
BASIC:
|
xpdf
|
|
|
|
PRINT:
|
Hit button in xpdf then use command lpr -P 115.
|
|
|
|
SLIDES:
|
evince
|
|
|
|
PRINT:
|
acroread
|
|
|
PROFILING
|
|
|
|
|
|
Tools for first analyzing and then optimizing program execution.
|
|
|
|
TIMING:
|
time python yourfile.py
|
|
|
|
MEMORY:
|
memusage python yourfile.py
|
|
|
|
|
Look for "realloc total memory" and "stack peak".
|
|
|
|
UTILITY:
|
python -m cProfile yourfile.py
|
|
|
SOFTWARE
|
|
|
|
|
|
vim pdflatex dot display convert gnuplot gifsicle mplayer
|
|
|
|
firefox soffice kate gimp matlab mathematica mencoder
|
|
|
|
ssh sftp scp zip tar make ps grep kill gv okteta xvidcap
|
|
|
REMOTE
|
|
|
|
|
|
Connect to the lab from home or anywhere else on the outside.
|
|
|
|
HOST:
|
remote.tjhsst.edu
|
|
|
|
WINDOWS:
|
PuTTY
WinSCP
|
|
|
Back to top
|
|
|