<commit_before># ctf-scoreboard-recipe cookbook

This is a cookbook that allows for the automated creation of a scoreboard for the MITRE stem CTF. It also sets up syncing of keys between the VPN box and the scoreboard for users to download.

## Commands to use this recipe for deployment

If you want to run this recipe on your server without using a full chef server install, you can use the following commands.
[b]Note:[/b] Do not use the ChefDK, it does not work properly with this cookbook!

* `curl -L https://www.chef.io/chef/install.sh | sudo bash` # Install chef
* `gem install berkshelf` # May require installation of ruby if no system ruby is present
* `cd scoreboard-recipe` # Enter directory containing this code
* `berks vendor cookbooks` # fetch all cookbook dependencies and place in the cookbooks directory.
* `sudo chef-client -z -j (hs|college)-node.json` # Run the chef client in standalone mode using the hs and college node.json provided.

Note: When deploying this for an actual CTF, you can run 2 instances of the scoreboard side-by-side on the same machine, all you need to do is execute `sudo chef-client -z -j` on both the hs and college node.json files. They will not conflict with one another.<commit_msg>Fix bolding.<commit_after># ctf-scoreboard-recipe cookbook

This is a cookbook that allows for the automated creation of a scoreboard for the MITRE stem CTF. It also sets up syncing of keys between the VPN box and the scoreboard for users to download.

## Commands to use this recipe for deployment

If you want to run this recipe on your server without using a full chef server install, you can use the following commands.
**Note:** Do not use the ChefDK, it does not work properly with this cookbook!

* `curl -L https://www.chef.io/chef/install.sh | sudo bash` # Install chef
* `gem install berkshelf` # May require installation of ruby if no system ruby is present
* `cd scoreboard-recipe` # Enter directory containing this code
* `berks vendor cookbooks` # fetch all cookbook dependencies and place in the cookbooks directory.
* `sudo chef-client -z -j (hs|college)-node.json` # Run the chef client in standalone mode using the hs and college node.json provided.

Note: When deploying this for an actual CTF, you can run 2 instances of the scoreboard side-by-side on the same machine, all you need to do is execute `sudo chef-client -z -j` on both the hs and college node.json files. They will not conflict with one another.
{'fraction_non_alphanumeric': 0.060926076360682375, 'fraction_numerical': 0.0008123476848090983, 'mean_word_length': 4.17436974789916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2690876', 'n_tokens_mistral': 680, 'n_tokens_neox': 646, 'n_words': 380}