Skip to content

Instantly share code, notes, and snippets.

@ecarnevale
ecarnevale / codes.rb
Created February 13, 2009 13:29 — forked from jamis/codes.rb
# Generates a series of substitution cipher puzzles. The messages to
# "encrypt" are take from a text file passed on the command-line,
# where each message is on one line.
#
# The output is a PDF, "codes.pdf".
#
# Forked from Jamis Buck's http://gist.github.com/58141
# changed to show code as numbers instead of letters and a hint of solution instead of the key.
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
#
# <VirtualHost *:80>
# ServerName example.com
# ServerAlias *.example.com
# </VirtualHost>
#
# 3) Set the current account from the subdomain