Skip to content


Folders and files

Last commit message
Last commit date

Latest commit


Repository files navigation

HackMIT Puzzle

Woo puzzle! :)

Source code and stuff for every puzzle should go in its own subdirectory.

Please don't commit huge binaries and stuff that should be fetched via npm install, etc.

It's fine to check in our own graphics assets and stuff.

Deploying to AWS

If you have some service running on some weird port (say 8080 for example) and want to forward port 80, do this:

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo sh -c "iptables-save > /etc/iptables.rules"

If you have some service that you have to run manually using $cmd, you can do the following to background it:

  1. screen to open up a new screen
  2. until $cmd; do echo "Server crashed, restarting..."; done
  3. Control+A+D to exit the screen. You can now exit your shell prompt.
  4. To check if any programs are running in the background this way, type screen -list
  5. To view the output of your server, type screen -r

Note that it would probably be better to wrap this in something that watches for failures and reboots if necessary. Also, auto-starting when the machine boots up is nice.

Puzzle Hosting Stuff

Number Name Domain Where hosted
All Command Center AWS
0 Splash Page Github Pages
1 Slack AWS
2 Origami Github Pages
4 Audio Github Pages
5 Maze AWS
6 Stronghold AWS