Skip to content

Instantly share code, notes, and snippets.

<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">text_general</str>
<lst name="spellchecker">
<str name="name">default</str>
<str name="field">text</str>
<str name="classname">solr.DirectSolrSpellChecker</str>
<str name="distanceMeasure">internal</str>
trialist vhost:
Listen 9303
<VirtualHost *:9303>
DocumentRoot /vagrant/codebase/trialist
</VirtualHost>
ohmage vhost:
@Adyg
Adyg / Gettinge Ohmage server up
Last active August 29, 2015 14:02
Ohmage server
apt-get update
GIT
apt-get install git
JAVA
apt-get install software-properties-common python-software-properties
add-apt-repository ppa:webupd8team/java
@Adyg
Adyg / Avconv & Imagemagick CPU limit
Last active November 17, 2015 16:51
CPU limit for avconv and imagemagick convert
#limit imagemagick convert to 40% cpu
cpulimit -l 40 -e convert.im6
#limit avconv to 40% cpu
cpulimit -l 40 -e avconv
#build transition images. nice -n to ensure nothing stalls because of it
nice -n 19 convert img1.jpg img2.jpg -delay 10 -morph 200 tmp_zl.png
#build video from transition images. again note "nice -n"