<commit_before>#!/bin/bash

# When you change this file, you must take manual action. Read this doc:
# - https://docs.sandstorm.io/en/latest/vagrant-spk/customizing/#setupsh

set -euo pipefail
# Install node.js

# Discussion, issues and change requests at:
#   https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 4.x repo onto a
# Debian or Ubuntu system.

export DEBIAN_FRONTEND=noninteractive

echo "Installing the NodeSource Node.js 4.x repo..."

apt-get update
apt-get install -qq apt-transport-https

echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

# Add nodesource's apt gpg key inline
echo "
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
Comment: GPGTools - https://gpgtools.org
<commit_msg>Update setup.sh<commit_after>#!/bin/bash

# When you change this file, you must take manual action. Read this doc:
# - https://docs.sandstorm.io/en/latest/vagrant-spk/customizing/#setupsh

set -euo pipefail
# Install node.js

# Discussion, issues and change requests at:
#   https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 4.x repo onto a
# Debian or Ubuntu system.

export DEBIAN_FRONTEND=noninteractive

echo "Installing the NodeSource Node.js 6.x repo..."

apt-get update
apt-get install -qq apt-transport-https

echo 'deb https://deb.nodesource.com/node_6.x jessie main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_6.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

# Add nodesource's apt gpg key inline
echo "
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
Comment: GPGTools - https://gpgtools.org

{'fraction_non_alphanumeric': 0.12541436464088399, 'fraction_numerical': 0.0055248618784530384, 'mean_word_length': 3.8552278820375334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2601728', 'n_tokens_mistral': 646, 'n_tokens_neox': 607, 'n_words': 173}