This is the content.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import env, put, run, sudo | |
from fabric.contrib.files import upload_template | |
env.hosts = ['host1', 'host2'] | |
env.password = 'your_password' | |
def upgrade(): | |
run('apt-get update && apt-get -y upgrade') | |
reboot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class a(): | |
def set_attrs_in_class_given_key_value_pairs(**kwargs): | |
for k,v in kwargs.iteritems(): | |
setattr(self, k, v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is <i>only</i> a test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With an extra file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>I'm not sure if anyone's been crazy enough to try this yet, but I've had this vision for a while. I had three main goals: get the data out of a relational database, put it in the cloud, and make it look pretty.</p> | |
<p><b>I satisfied the first goal using github's gist API as a data store for all of my blog posts.</b> I use the description as the title, the filename to anchor the URL semantically, the created_at date for the date/time of the posting, and the body for the post itself. I'm only supporting single filename gists right now, and I use the starred/unstarred functionality to mean published and draft, respectively. The beauty of this design is that it allows me to avoid having to implement all of the CMS functions directly, i.e authentication, creating, updating, deleting posts, etc. In exchange, I use github's gist interface for creation, updating, deleting, promoting from draft to published, and in turn, I get versioning and forking of posts for free, which is inline with both my share and share-al |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>If I ever wind up with a giant pile of money, <a href="http://watsonarchitect.com/">this guy is going to be my architect</a>.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p><iframe width="940" height="705" src="http://www.youtube.com/embed/qG5AZIRMvRo" frameborder="0" allowfullscreen></iframe></p> |
OlderNewer