# Here are some of the invocations I have used for firing up different
# modules and experiments. This is neither necessary nor sufficient,
# it's just a notepad I used to copy/paste command-line invocations.
cd ~/snowflake
jdk-go
setenv CLASSPATH `make classpath`
java -Djava.compiler=NONE jp.ProxyConfig certs-jon
java sun.rmi.registry.RegistryImpl
java -Djava.compiler=NONE relational.SSHDatabase '(hash md5 |9sj+h6KmnTmPxoIiRB3V3g==|)'
java -Dsun.rmi.transport.tcp.logLevel=VERBOSE -Djava.compiler=NONE jp.SecureServerConfig '(noing)'

cd Jetty-2.3.3; run-demo


use /u/jonh/snowflake:/u/jonh/cryptix/src:/u/jonh/puretls-0.9b1/src:/u/jonh/Jetty-2.3.3/src:/net/plow1/java/jdk1_2_2-src/src/share/classes/

jdb timingexp.HttpExp -useSnowflake=true -port=8041 -uri=/files/timing/data-000100.txt
stop at jp.SfUserAgent:537

java servlet.SSLServerConfig -fourServers=true
java jp.SecureServerConfig -root /usr/local/apache/htdocs
java timingexp.GenerateTestCases -mode=snowflake-signs -runTests=true > timedata/snowflake-signs-shovel2 ; ssh zealand 'echo signs done | mail jonh'

# setup for the gateway demo
java jp.SecureServerConfig -root /usr/local/apache/htdocs
java relational.SSHDatabase '(hash md5 |7G72B2o2Ghj/qlMRx6Vifg==|)'
scp zealand:mail/valleynet /tmp
java relational.email.Mailbox /tmp/valleynet remote

java timingexp.HttpExp -numberOfConnections=2 -port=8040 -uri='http://localhost:8041/mail/message/?messageId=12'

# ssh/RMI timing
java timingexp.TestRMIServer -publicKey certs-server/1.object
java timingexp.RMIExp -registryService=TestRMIServer3
java timingexp.GenerateTestCases -mode=rmibw -runTests=true
java timingexp.GenerateTestCases -mode=rmisetup -runTests=true

# documentation
javadoc -output texdoc/docs.tex -docletpath /u/jonh/texdoclet -doclet com.c2_tech.doclets.TexDoclet -noinherited `cat report/packages-jonh` -overview overview.html; scp texdoc/docs.tex zealand:os/thesis/manual.tex

# time RMI overheads
timingexp/timeUnixOps-noopt > timedata/rmiovh-1
timingexp/timeUnixOps-opt >> timedata/rmiovh-1
java -Djava.compiler=NONE timingexp.TestJavaOverheads >> timedata/rmiovh-1
java timingexp.TestJavaOverheads -off 14 >> timedata/rmiovh-1

# Jetty vs. Apache:
java servlet.SSLServerConfig -fourServers=true
java timingexp.HttpExp -numberOfConnections 2 -socket SSL -port 8243 -cacheContext false -numberOfTimings=100

# start openssl demo server
/usr/local/src/openssl-0.9.5/apps/openssl s_server -WWW -cert /usr/local/apache/conf/ssl.crt/server.crt -key /usr/local/apache/conf/ssl.key/server.key -quiet

# this is one point on experiment 13: (4433 is the openssl demo server)
java timingexp.HttpExp -numberOfConnections 10 -protocol 1.1 -socket SSL -cacheContext false -port 4433

catch COM.claymoresystems.cert.CertificateVerifyException
stop at COM.claymoresystems.cert.X509Cert:386

gdb /usr/local/src/openssl-0.9.5-g/apps/openssl
break s_socket.c:313
break ssl3_shutdown
break s3_lib.c:1158
break s3_lib.c:1164
run s_server -WWW -cert /usr/local/apache/conf/ssl.crt/server.crt -key /usr/local/apache/conf/ssl.key/server.key -state

# to debug Apache on the console, no child procs
cd /usr/local/apache
/usr/local/src/apache_1.3.12/src/httpd -DSSL -X

WOW. Relinking with openssl (-O3?) cured Apache!

# Experiment 13/15
java timingexp.GenerateTestCases -mode=sslbw11 -runTests=true -testList=0,1,2,3,4,5,12,13,14,15,16,17,24,25,26,27,28,29 > timedata/sslbw11-shovel-2
# Apache parts of Experiment 8/9
java timingexp.GenerateTestCases -mode=sslreq3 -runTests=true -testList=0,2,4,6,8,10 > timedata/sslreq3-shovel-2

