Skip to content

Instantly share code, notes, and snippets.

@jondb
jondb / acat.py
Last active December 17, 2015 16:09
Follow all includes in an apache file and cat the entire config to STDOUT.
#!/usr/bin/env python
"""Usage: acat.py <root-config-file>
This program takes the root apache config file and outputs it
to STDOUT following all Include directives.
source: https://gist.github.com/jondb/5637099
Get it:
curl https://gist.github.com/jondb/5637099/download | tar xvz --strip-components=1 && chmod +x acat.py
"""