Skip to content

Instantly share code, notes, and snippets.

@wjordan
wjordan / install-blockly.sh
Last active July 10, 2021 15:10
installs blockly onto ubuntu server
cat <<END_ROOT_SCRIPT | sudo /bin/bash -s
set -e # exit if any command exits with nonzero
export DEBIAN_FRONTEND=noninteractive
# run as root
apt-get update
apt-get install -y software-properties-common
apt-add-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y git nodejs libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
var testConfig = {
timeout: 3000,
freq: 250
};
function doTryCatch(f){try {return f();} catch(e){error(e);}}
function error(msg){console.error("phantomjs-joounit> "+ msg);phantom.exit(1);}
doTryCatch(
function (){
for(var i = 0; i < phantom.args.length ; i++){
var arg = phantom.args[i];