Last active
August 29, 2015 14:11
-
-
Save adrienkaiser/dfadc8df9998ca8cf2d2 to your computer and use it in GitHub Desktop.
Run mediation pipeline with python from command line
This file contains hidden or 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
Start CYGWIN | |
## Connect to AWS server from Cygwin | |
$ ssh -i ~/WinHome/Work/AE/Corexpert/cxp_frankfurt_dmaas.pem [email protected] | |
## Install python dependencies | |
$ sudo aptitude install python-gevent | |
$ sudo aptitude install python-rdflib | |
$ sudo aptitude install python-simplejson | |
$ sudo aptitude install git | |
$ sudo aptitude install python-setuptools | |
$ git clone https://github.com/c00w/gevent-dht.git | |
$ cd gevent-dht | |
$ sudo python setup.py install | |
$ cd .. | |
$ git clone https://github.com/RDFLib/rdfextras.git | |
$ cd rdfextras | |
$ sudo python setup.py install | |
$ cd .. | |
$ sudo rm -rf gevent-dht rdfextras | |
$ sudo aptitude install python-pip | |
$ sudo pip install html5lib==0.95 # http://stackoverflow.com/questions/17597734/how-to-parse-n3-in-rdflib | |
$ pip search rdflib # get latest version tag | |
$ sudo pip install rdflib==4.1.2 | |
$ sudo pip install rdflib==3.4.0 | |
# needs mechanize to communicate with forms on websites : | |
$ sudo pip install mechanize | |
## Run prototype | |
$ cd ~/public_html/CODE_DMAAS/PROTO_dmaas/code | |
$ python composer.py > out.html | |
http://54.93.191.8/CODE_DMAAS/PROTO_dmaas/code/out.html | |
## Edit code | |
# http://concisionandconcinnity.blogspot.fr/2009/07/vim-part-i-improved-python-syntax.html | |
$ mkdir ~/.vim | |
$ mkdir ~/.vim/colors | |
[Cygwin] $ scp -i ~/WinHome/Work/AE/Corexpert/cxp_frankfurt_dmaas.pem ~/WinHome/Work/AE/Corexpert/blackboard.vim [email protected]:/home/ubuntu/.vim/colors | |
$ echo "colorscheme blackboard" > ~/.vimrc | |
$ vi composer.py | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment