This file contains 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
VERSION=0.90.1 | |
sudo apt-get update | |
sudo apt-get install openjdk-6-jdk | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb | |
sudo dpkg -i elasticsearch-$VERSION.deb | |
# be sure you add "action.disable_delete_all_indices" : true to the config!! |
This file contains 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
# as root | |
echo -e "\ndeb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list | |
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
apt-key add rabbitmq-signing-key-public.asc | |
apt-get update |
This file contains 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
# Install rabbitmq | |
wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo | |
yum install erlang | |
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.3/rabbitmq-server-3.2.3-1.noarch.rpm |
This file contains 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
[elasticsearch-1.0] | |
name=Elasticsearch repository for 1.0.x packages | |
baseurl=http://packages.elasticsearch.org/elasticsearch/1.0/centos | |
gpgcheck=1 | |
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch | |
enabled=1 |
This file contains 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
final SurfaceView sv = (SurfaceView) findViewById(R.id.splash_surface); | |
MediaPlayer mp = new MediaPlayer(); | |
mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { | |
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) | |
@Override | |
public void onPrepared(MediaPlayer mp) { | |
mp.setVideoScalingMode(MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING); | |
mp.setDisplay(sv.getHolder()); | |
mp.start(); |
This file contains 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
# Try to tap the screen until view open on screen | |
# x:: starting x value | |
# y:: starting y value | |
# x_delta:: Value to change in x direction | |
# y_delta:: Value to change in y direction | |
# query:: query to wait for the view | |
# number_of_tries:: number of tries | |
def touch_element_by_moving(x, y, x_delta, y_delta, query, number_of_tries=5) | |
i = 0 | |
begin |
This file contains 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
# Bash snippet to open new shells in most recently visited dir. | |
# Useful if you want to open a new terminal tab at the present | |
# tab's location. | |
# | |
# Put this in your .bashrc or whatever. | |
pathed_cd () { | |
if [ "$1" == "" ]; then | |
cd | |
else |
This file contains 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
ps aux | grep http | grep "\-k" | awk {/[0-9]+/ '{print $2}' | xargs kill -9 |
This file contains 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
<div style="text-align:center"> | |
<a href="http://atlantis.crlt.indiana.edu/main/infoItem/listInfoItems.pl?type=update" class="update_link" title="updatelink" style="display:none";> | |
<img src="http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif" | |
onmouseover="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update_over.gif';" | |
onmouseout="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif';" | |
style="border:none;" | |
/> | |
</a> | |
</div> | |
<script type="text/javascript"> |
This file contains 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
$j(document).ready(function(){ | |
if (window.location.href.match(/avatarSelect/)) { | |
var greeting = $j("<p><a href='http://questatlantis.org'>Apapane, I like how I look. What next?</p></a>"); | |
$j("input[name=btnSubmit]:first").parent().append(greeting); | |
} | |
}); | |
OlderNewer