Skip to content

Instantly share code, notes, and snippets.

@alexislucena
alexislucena / tomcat-basic-install-on-ubuntu.md
Last active March 19, 2019 17:52
Tomcat 8 basic installation on Ubuntu 16.04 with Java installed

Login as root

$ sudo su

Install updates

$ apt-get update && apt-get upgrade

Install Tomcat from the Ubuntu repository

@OrganicPanda
OrganicPanda / mouse-plugin.js
Created July 28, 2016 16:06
Track the mouse position in Protractor
// Hook in to `addEventListener` to track the mouse and display it as a circle
exports.onPageLoad = function() {
return browser.executeScript(function() {
(function() {
var EventSniffer = function() {
this.history = [];
this.callbacks = {};
this.minCacheSize = 100;
this.maxCacheSize = 500;
};