This script downloads and installs ActiveMQ to $HOME/prj and adds ACTIVEMQ_HOME to PATH.
To install ActiveMQ with this script:
curl -s https://gist.githubusercontent.com/martonsereg/9375096/raw/activemq-install | bash
| var stompClient = null; | |
| function connect() { | |
| var socket = new SockJS('http://localhost:8080/notification'); | |
| stompClient = Stomp.over(socket); | |
| stompClient.connect({}, function(frame) { | |
| console.log('Connected: ' + frame); | |
| stompClient.subscribe('/topic/stack', function(stackInfo){ | |
| logStackInfo(stackInfo); | |
| }); |
| #!/bin/bash | |
| # remove the ssh-key | |
| rm -f ~/.ssh/id_hadoop | |
| DOCKER_IMAGE="sequenceiq/phoenix" | |
| # removing the sandbox container if it exist | |
| sudo docker rm -f sandbox |
| #!/bin/bash | |
| # remove the ssh-key | |
| rm -f ~/.ssh/id_hadoop | |
| #starting an instance for retrieving the ssh key | |
| echo installing the ssh key of the instance | |
| DID=$(docker run -d -t sequenceiq/hadoop-docker) | |
| docker stop -t 1 $DID | |
| docker cp $DID:/root/.ssh/id_rsa . |
| def plugins = jenkins.model.Jenkins.instance.pluginManager.plugins | |
| println plugins.find { it.getShortName() == args[0] } != null |
| #Organize Import Order | |
| #Thu Mar 06 15:02:23 CET 2014 | |
| 4=com | |
| 3=org | |
| 2=javax | |
| 1=java | |
| 0=\# |
| #!/bin/bash | |
| yum -y install nginx; | |
| mkdir -p /marci/trafikmutyi; | |
| cd /marci/trafikmutyi; | |
| wget https://s3.amazonaws.com/marci-trafik/nginx.conf; | |
| mv nginx.conf /etc/nginx/nginx.conf; |
| def calculate_water (columns) | |
| left = 0 | |
| right = columns.length - 1 | |
| left_max = 0 | |
| right_max = 0 | |
| volume = 0 | |
| until left >= right | |
| left_max = columns[left] if columns[left] > left_max | |
| right_max = columns[right] if columns[right] > right_max |