Skip to content

Instantly share code, notes, and snippets.

@PanMan
PanMan / deploy.rb
Created October 31, 2012 16:41
cap recipe for deploying non rails sites to Media Temple grid servers -Fixed!
# Fork as symlink is changed to create_symlink - took a bit to find out
# After running cap deploy:cold, You'll need to remove all files from the
# domains/yourdomain.com/html directory and turn the html directory into a
# symlink that links to ./current which is also a symlink setup by capistrano.
#
# Configure these
set :site, "12345" # this is your site number, for example if your access domain is s12345.gridserver.com
set :application, "example.com" # typically the same as the domain
@olasitarska
olasitarska / pgessays.py
Created November 18, 2012 10:11
Builds epub book out of Paul Graham's essays.
# -*- coding: utf-8 -*-
"""
Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html
Author: Ola Sitarska <ola@sitarska.com>
Copyright: Licensed under the GPL-3 (http://www.gnu.org/licenses/gpl-3.0.html)
This script requires python-epub-library: http://code.google.com/p/python-epub-builder/
"""