Commits

John Louis del Rosario committed 32bd727

rename to kodig

Comments (0)

Files changed (3)

content/projects/kodig.html

+
+{% extends "_post.html" %}
+
+{%load webdesign %}
+
+{%hyde
+title: Kodig
+snippet: Quick posts for everyone
+created: 2011-09-19 03:52:29
+%}
+
+{% block article %}
+
+{%article%}
+
+{% excerpt %}
+
+What is Kodig?
+----
+Kodig is a free service for sharing quick posts online. You can post anything from detailed articles to random rants. If you are a coder, you can consider it as a [pastebin][] for non-code related texts.  
+
+[pastebin]: http://pastebin.com
+{%endexcerpt%}
+
+How do I format my posts?
+-----
+Kodig supports the [Markdown][] syntax for posts. Markdown allows you to quickly write long texts without having to worry about markup.
+
+For a detailed introduction to Markdown, check out the official project [page][Markdown].
+
+[Markdown]: http://daringfireball.net/projects/markdown/basics
+
+What does a "private" post mean?
+-----
+Private posts do not get displayed on the home page or other post listing page (/posts/all/, etc.). Any user can view them if they know the link (i.e. the author shares the link).
+
+
+What is an "anonymous" post?
+-----
+Anonymous posts don't have an author attached to them. They cannot be modified and/or deleted once posted.
+
+What is Kodig built on?
+-----
+It is built on [Django][].
+
+[Django]: http://djangoproject.com
+
+Who built Kodig?
+----
+It is built by [john2x][john2x] as a learning experience for himself and hopefully for others as well.
+
+[john2x]: http://john2x.com
+
+How can others learn from Kodig?
+-----
+Haven't you heard? It's open [source][]. ;)
+
+[source]: https://bitbucket.org/john2x/kodig
+
+What license does Kodig use?
+-----
+A 3-clause BSD license. Check out the LICENSE file in the [source][] directory.
+
+What's with the name?
+-----
+Kodig is slang in my dialect for little notes or "cheat sheets". 
+
+Where can I send feedback/bug reports/complaints?
+-----
+You can email john2x at gmail.com
+
+
+{%endarticle%}
+
+{% endblock %}

content/projects/stikkynotes.html

-
-{% extends "_post.html" %}
-
-{%load webdesign %}
-
-{%hyde
-title: Stikky Notes
-snippet: Quick posts for everyone
-created: 2011-09-19 03:52:29
-%}
-
-{% block article %}
-
-{%article%}
-
-{% excerpt %}
-
-What is Stikky Notes?
-----
-[Stikky Notes][stikkynotes] is a free service for sharing quick posts online. You can post anything from detailed articles to random rants. If you are a coder, you can consider it as a [pastebin][] for non-code related texts.  
-
-[pastebin]: http://pastebin.com
-[stikkynotes]: http://stikkynotes.ep.io
-* * * *
-
-How do I format my posts?
------
-Stikky Notes supports the [Markdown][] syntax for posts. Markdown allows you to quickly write long texts without having to worry about markup.
-
-**Example:**
-
-    # Heading
-    
-    Placing `#` at the beginning of a line marks it as a heading. Place multiple `#`'s for sub-headings.
-
-    ## Sub Heading
-
-    To render lists, place ` - ` before your list items.
-    
-     - item 1
-     - item 2
-     - item N
-
-    Surround text with `*` to *italicize* and `**` to make it **bold**.
-
-**Renders:**
-
-# Heading
-
-Placing `#` at the beginning of a line marks it as a heading. Place multiple `#`'s for sub-headings.
-
-## Sub Heading
-
-To render lists, place ` - ` before your list items.
-
- - item 1
- - item 2
- - item N
-
-Surround text with `*` to *italicize* and `**` to make it **bold**.
-
-For a detailed introduction to Markdown, check out the official project [page][Markdown].
-
-[Markdown]: http://daringfireball.net/projects/markdown/basics
-* * * *
-
-What does a "private" post mean?
------
-Private posts do not get displayed on the home page or other post listing page (/posts/all/, etc.). Any user can view them if they know the link (i.e. the author shares the link).
-
-* * * *
-
-What is an "anonymous" post?
------
-Anonymous posts don't have an author attached to them. They cannot be modified and/or deleted once posted.
-
-* * * *
-What is Stikky Notes built on?
------
-It is built on [Django][].
-
-[Django]: http://djangoproject.com
-* * * *
-Who built Stikky Notes?
-----
-It is built by [me][john2x] as a learning experience for himself and hopefully for others as well.
-
-[john2x]: http://john2x.com
-* * * *
-
-How can others learn from Stikky Notes?
------
-Haven't you heard? It's open [source][]. ;)
-
-[source]: https://bitbucket.org/john2x/stikkynotes
-
-* * * *
-What license does Stikky Notes use?
------
-A 3-clause BSD license. Check out the LICENSE file in the [source][] directory.
-
-* * * *
-Where can I send feedback/bug reports/complaints?
------
-You can email john2x at gmail.com
-
-{%endexcerpt%}
-
-{%endarticle%}
-
-{% endblock %}
+from fabric.api import *
+import os
+import fabric.contrib.project as project
+
+HOST = 'ekininet@ekini.net'
+REMOTE_DIR = '/home/ekininet/public_html/john2x'
+ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
+DEPLOY_PATH = os.path.join(ROOT_PATH, 'deploy')
+
+def clean():
+    local('rm -rf ./deploy')
+
+def gen():
+    local('hyde -g -s .')
+
+def regen():
+    clean()
+    local('hyde -g -s .')
+
+def serve():
+    local('hyde -w -s .')
+
+def reserve():
+    gen()
+    serve()
+
+def smush():
+    local('smusher ./media/images')
+
+@hosts(HOST)
+def publish():
+    gen()
+    project.rsync_project(
+        remote_dir=REMOTE_DIR,
+        local_dir=DEPLOY_PATH.rstrip('/') + '/',
+        delete=False,
+        extra_opts='-e "ssh -p 65321"'
+    )
+