View provision-ubuntu.sh
sudo passwd root;
su root;
cd ~;
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config;
service ssh restart;
apt-get -y update;
apt-get -y upgrade;
apt-get -y install git;
curl -s -L https://get.docker.com/ | sudo bash;
sh -c 'curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose';
View hashedLinkChecker.user.js
// ==UserScript==
// @name linkChecker
// @namespace linkChecker
// @include file:///*/*.html*
// @version 1
// @grant none
// ==/UserScript==
/**
* PREREQS: Firefox, Greasemonkey - https://addons.mozilla.org/en-US/firefox/addon/greasemonkey
View autoLoader.user.js
// ==UserScript==
// @name autoLoader
// @namespace autoLoader
// @include file:///*/*.pdf*
// @version 1
// @grant none
// ==/UserScript==
/**
* PREREQS: Firefox, Greasemonkey - https://addons.mozilla.org/en-US/firefox/addon/greasemonkey
View chain2.js
var chain = (function() {
var count = 0;
function Inner() {
var self = this;
self.funcA = function(num) { count += num; return self; }
self.funcB = function() { count += 2; return self; }
self.ok = function() { var result = count; count=0; return result; }
}
return new Inner();
}());
View chain1.js
var _ = require('underscore');
function MyClass() {
this.prop1 = {};
this.prop2 = {};
this.prop3 = {};
}
MyClass.prototype.func1 = function (obj) {
var self = this;
_.extend(self.prop1, obj);