<commit_before>#!/usr/bin/env bash

docker run --name wayde -itd ihakula/ubuntu1404-ruby bash
docker attach wayde
docker ps
docker run -di ihakula/ubuntu1404-ruby
docker container stop $(docker ps -aq)
docker rm $(docker ps -aq)

# Apache PHP
docker run --name json-editor-online -p 8701:80 -e VIRTUAL_HOST=www.jsoneditoronline.cn -v /home/repos/jsoneditoronline/:/var/www/html/ -d eboraas/apache-php

# MySQL
docker run --name zm-mysql -e MYSQL_ROOT_PASSWORD=<PASSWORD>! -d mysql:5.6

# localhost testing
docker inspect 11b26a03a36a
mysql -h 192.168.0.2 -P 3306 --protocol=tcp -u root -p

# phpMyAdmin
docker run --name zm-phpmyadmin -d --link zm-mysql:db -e VIRTUAL_HOST=phpmyadmin.sunzhongmou.com -p 8601:80 phpmyadmin/phpmyadmin

# Nginx
docker run --name zm-nginx -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy

# wordpress
docker run --name zm-wordpress --link zm-mysql:mysql -e WORDPRESS_DB_NAME=szm-blog -e VIRTUAL_HOST=blog.sunzhongmou.com -p 8501:80 -d wordpress


# 1. Start a brand new Aliyun EC2<commit_msg>add source; Wayde<commit_after>#!/usr/bin/env bash

docker run --name wayde -itd ihakula/ubuntu1404-ruby bash
docker attach wayde
docker ps
docker run -di ihakula/ubuntu1404-ruby
docker container stop $(docker ps -aq)
docker rm $(docker ps -aq)

# Apache PHP
docker run --name json-editor-online -p 8701:80 -e VIRTUAL_HOST=www.jsoneditoronline.cn -v /home/repos/jsoneditoronline/:/var/www/html/ -d eboraas/apache-php
# source
docker run --name zm-source -p 8702:80 -e VIRTUAL_HOST=source.sunzhongmou.com -v /home/repos/source/:/var/www/html/ -d eboraas/apache-php

# MySQL
docker run --name zm-mysql -e MYSQL_ROOT_PASSWORD=<PASSWORD>! -d mysql:5.6

# localhost testing
docker inspect 11b26a03a36a
mysql -h 192.168.0.2 -P 3306 --protocol=tcp -u root -p
docker inspect zm-mysql | grep IPAddress

# phpMyAdmin
docker run --name zm-phpmyadmin -d --link zm-mysql:db -e VIRTUAL_HOST=phpmyadmin.sunzhongmou.com -p 8601:80 phpmyadmin/phpmyadmin

# Nginx
docker run --name zm-nginx -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy

# wordpress
docker run --name zm-wordpress --link zm-mysql:mysql -e WORDPRESS_DB_NAME=szm-blog -e VIRTUAL_HOST=blog.sunzhongmou.com -p 8501:80 -d wordpress


# 1. Start a brand new Aliyun EC2
{'fraction_non_alphanumeric': 0.12084063047285463, 'fraction_numerical': 0.049912434325744305, 'mean_word_length': 3.8105263157894735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 2, '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': '2728259', 'n_tokens_mistral': 1013, 'n_tokens_neox': 876, 'n_words': 243}