protractor using page objects to organize tests

https://angular.github.io/protractor/#/page-objects

Leave a comment

Filed under Technical Links

Service Discovery, Eureka – Zookeeper

http://www.knewton.com/tech/blog/2014/12/eureka-shouldnt-use-zookeeper-service-discovery/

http://codahale.com/you-cant-sacrifice-partition-tolerance/

http://techblog.netflix.com/2012/09/eureka.html

Leave a comment

Filed under Technical Links

nginx load balancer

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing

Leave a comment

Filed under Technical Links

multiple websites in the same nginx server

How to set up nginx server blocks (virtual hosts) on ubuntu 14.04 LTS

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts

https://www.digitalocean.com/community/tutorials/how-to-host-multiple-node-js-applications-on-a-single-vps-with-nginx-forever-and-crontab

Leave a comment

Filed under Technical Links

multiple websites in same azure web role port

http://stackoverflow.com/questions/18470636/multiple-azure-webroles-using-ssl-how-do-i-setup-the-solution

<WebRole name="Test" vmsize="Small">
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="HttpInput" />
          <Binding name="Endpoint1" endpointName="HttpsInput" />
        </Bindings>
      </Site>
      <Site name="Api" physicalDirectory="[Relative Path to Published API">
        <Bindings>
          <Binding name="ApiEndpoint" endpointName="HttpsInput" hostHeader="api.test.com" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="HttpInput" protocol="http" port="80" />
      <InputEndpoint name="HttpsInput" protocol="https" port="443" certificate="SSL" />
    </Endpoints>

there is a full documentation in https://msdn.microsoft.com/library/azure/gg433110.aspx

Leave a comment

Filed under Technical Links

install nodejs using PM2

install nodejs using PM2

https://github.com/Unitech/pm2

https://app.keymetrics.io

Leave a comment

Filed under Technical Links

Install RabbitMQ on ubuntu

from https://marcqualie.com/2012/12/install-rabbitmq-on-ubuntu-12.04

I’ve put together this simple install script that I compiled from the various tutorials on the rabbitmq site. It’s not intended to be anything new or that isn’t easily accessible; It’s simply the quickest way I’ve found to get up and running with the web interface out of the box.

echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
apt-get update
apt-get install rabbitmq-server -y
service rabbitmq-server start
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user admin password
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
rabbitmqctl delete_user guest
service rabbitmq-server restart

Make sure you change the word “password” to the actual password you want to login with in the add_user line before running. The default port for the admin interface is 15672. You can use the management interface to finish off your configuration such as adding exchanges, queues, users and vhosts. Make sure to open the correct firewall ports (15672, 5672) if you are going to be accessing the box outside of a VPN or localhost.

Leave a comment

Filed under Technical Links