<commit_before>#!/bin/sh

# Replace with CN aliyun apt-get sources
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse" \
    > /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list

# Replace GEM sources to Taobao, see https://ruby.taobao.org/
gem sources --remove https://rubygems.org/
gem sources --remove http://rubygems.org/
gem sources -a https://ruby.taobao.org/

# Install add-docker-registry
echo "Installing add-docker-registry"
cp /vagrant/add-docker-registry /usr/bin
chmod 755 /usr/bin/add-docker-registry

# Update
sudo apt-get update<commit_msg>Fix: ssh authentication issue, #1<commit_after>#!/bin/sh

# Replace with CN aliyun apt-get sources
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse" \
    > /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse" >> /etc/apt/sources.list

# Replace GEM sources to Taobao, see https://ruby.taobao.org/
gem sources --remove https://rubygems.org/
gem sources --remove http://rubygems.org/
gem sources -a https://ruby.taobao.org/

# Install add-docker-registry
echo "Installing add-docker-registry"
cp /vagrant/add-docker-registry /usr/bin
chmod 755 /usr/bin/add-docker-registry

# Update
sudo apt-get update

# Setup insecure keypair
# See https://github.com/cybertk/vagrant-box-ubuntu-cn/issues/1
curl -k https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub > ~/.ssh/authorized_keys
{'fraction_non_alphanumeric': 0.13227057302886686, 'fraction_numerical': 0.0034467901766479965, 'mean_word_length': 4.253393665158371, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, 'https://': 8, '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': '3030329', 'n_tokens_mistral': 813, 'n_tokens_neox': 749, 'n_words': 184}