<commit_before>#!/bin/sh
set -eu

slug=$1
code=$2
name=$3
ip=$4

mkdir -p repos/${slug}
cp ./deploy repos/${slug}/

cd repos/${slug}
git init

cat <<EOF >README.md
## Quick Start

~~~sh
# getting the code
git clone git@github.com:nko4/${slug}.git && cd ./${slug}/

# developing
npm install
npm start

# deploying (to http://${slug}.2013.nodeknockout.com/)
./deploy nko

# ssh access
ssh deploy@${ip}
ssh root@${ip}
~~~

Read more about this setup [on our blog][deploying-nko].

[deploying-nko]: http://blog.nodeknockout.com/#TODO<commit_msg>link to the deploy setup blog post<commit_after>#!/bin/sh
set -eu

slug=$1
code=$2
name=$3
ip=$4

mkdir -p repos/${slug}
cp ./deploy repos/${slug}/

cd repos/${slug}
git init

cat <<EOF >README.md
## Quick Start

~~~sh
# getting the code
git clone git@github.com:nko4/${slug}.git && cd ./${slug}/

# developing
npm install
npm start

# deploying (to http://${slug}.2013.nodeknockout.com/)
./deploy nko

# ssh access
ssh deploy@${ip}
ssh root@${ip}
~~~

Read more about this setup [on our blog][deploying-nko].

[deploying-nko]: http://blog.nodeknockout.com/post/66039926165/node-knockout-deployment-setup
{'fraction_non_alphanumeric': 0.18340611353711792, 'fraction_numerical': 0.025327510917030567, 'mean_word_length': 4.116071428571429, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2945538', 'n_tokens_mistral': 473, 'n_tokens_neox': 443, 'n_words': 119}