Git Product home page Git Product logo

holidayhackchallengetemplate's Introduction

SANS Holiday Hack Challenge Template

About

This is the template I've used for my 2020, 2021, and 2022 SANS Holiday Hack Challenge submissions. It's based on MkDocs and the MkDocs Material theme. The website based on this template and examples of winning reports and their repositories can be found at:

Report website GitHub repository Final score
Report template https://github.com/crahan/HolidayHackChallengeTemplate/ -
2020 submission https://github.com/crahan/HolidayHackChallenge2020 Best technical answer
2021 submission https://github.com/crahan/HolidayHackChallenge2021 Grand prize winner
2022 submission https://github.com/crahan/HolidayHackChallenge2022 ESNET award

Setup

Set Up Your Python Environment

  1. Make a copy of this repository in your own GitHub account and configure it as Private. Forking the repository won't work because a forked repository's visibility can not be changed to Private.
  2. Clone the copy of the repository to your computer using git clone <repository_url>.
  3. Navigate into the folder using cd <cloned_folder_name>.
  4. Create a Python virtual environment using python3 -m venv venv.
  5. Activate the environment using . ./venv/bin/activate (for a Bash shell environment).
  6. Install the Python package dependencies using pip install -r requirements.
  7. Run mkdocs serve to start a local copy of the website at http://127.0.0.1:8000/.

Add Your Content

Details such as the site name, site author, and contents of the sidebar navigation are configured in the mkdocs.yml file. The write-up itself and associated assets are located in the docs folder. The default configuration stores the write-up for each objective in a docs/objectives/oX.md file and associated images for that objective in a docs/img/objectives/oX/ folder. As you add content and make changes to files, MkDocs will automatically update the local copy of the website at http://127.0.0.1:8000/.

Files

Note: More information on how to make changes to MkDocs settings or the Material theme configuration is available at https://www.mkdocs.org/user-guide/writing-your-docs/ and https://squidfunk.github.io/mkdocs-material/reference/, respectively.

Publish Your Report

IMPORTANT: Make sure to configure your copied GitHub repository as Private while SANS Holiday Hack Challenge is ongoing. This way, no solutions or spoilers are accidentally leaked to the public!

Once the submission deadline has passed you are free to share your finalized report with the world. Run the mkdocs gh-deploy command in a terminal to create all the required HTML assets and push them to a gh-pages branch on GitHub. To serve the HTML content as a website go the Pages section in the GitHub settings for the copied repository, select Deploy from a branch for the Source and make sure the Branch is set to gh-pages.

GitHub Settings

After a few minutes your write-up will be live at https://<username>.github.io/<repository>, with <username your GitHub username and <repository> the name of your GitHub repository where you copied the HolidayHackChallengeTemplate project to.

holidayhackchallengetemplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.