Skip to content

Instantly share code, notes, and snippets.

View bitprophet's full-sized avatar
🎯
Focusing

Jeff Forcier bitprophet

🎯
Focusing
View GitHub Profile
def sphinx():
with cd('/tmp'):
tgz = 'sphinx-0.9.8.1.tar.gz'
run('wget http://www.sphinxsearch.com/downloads/%s' % tgz)
run('tar xzf %s' % tgz)
with cd(tgz.replace('.tar.gz', '')):
run('./configure')
run('make')
sudo('make install')
(taken from a Trac wiki page; stuff below these two paragraphs is the actual script)
In general, needs Apache 2.0+, mod_wsgi 2.3+, Python 2.5+, MySQL 5.0+. Also needs some Bash stuff for virtualenvwrapper to correctly put stuff into /opt/envs and for some aliases/non-sudo commands used below -- see Jeff's dotfile Github repo for the .bashrc.
Might need attached mod-wsgi .deb if version in APT is not 2.3
--
USER=jforcier
aptitude install libapache2-mod-wsgi mysql-server libmysqlclient-dev python-setuptools
sudo easy_install virtualenv virtualenvwrapper
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file