Skip to content

Instantly share code, notes, and snippets.

View gregnewman's full-sized avatar

Greg Newman gregnewman

View GitHub Profile
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
=====================
Readernaut Public API
=====================
1.0 (pre-release)
=================
Reader Books
------------
#!/bin/sh
# on ubuntu: need some utils & dev libs
sudo apt-get install apache2-utils openssl libssl-dev libpcre3-dev
# compile nginx
cd /tmp
curl http://nginx.org/download/nginx-0.7.64.tar.gz | tar xz
cd nginx*
./configure --with-http_ssl_module --with-http_dav_module \
emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) (error (kill-emacs 1)))'
# Source http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/bed5b2bd8b237f5a?pli=1
(defvar org-my-archive-expiry-days 1
"The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")
(defconst org-my-ts-regexp "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]>\r\n]*?\\)[]>]"
"Regular expression for fast inactive time stamp matching.")
(defun org-my-closing-time ()
(let* ((state-regexp
(concat "- State \"\\(?:" (regexp-opt org-done-keywords)
(defvar org-my-archive-expiry-days 1
"The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")
(defconst org-my-ts-regexp "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]>\r\n]*?\\)[]>]"
"Regular expression for fast inactive time stamp matching.")
(defun org-my-closing-time ()
(let* ((state-regexp
(concat "- State \"\\(?:" (regexp-opt org-done-keywords)
(defvar org-my-archive-expiry-days 1
"The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")
(defconst org-my-ts-regexp "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]>\r\n]*?\\)[]>]"
"Regular expression for fast inactive time stamp matching.")
(defun org-my-closing-time ()
(let* ((state-regexp
(concat "- State \"\\(?:" (regexp-opt org-done-keywords)
(defvar org-my-archive-expiry-days 1
"The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")
(defconst org-my-ts-regexp "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]>\r\n]*?\\)[]>]"
"Regular expression for fast inactive time stamp matching.")
(defun org-my-closing-time ()
(let* ((state-regexp
(concat "- State \"\\(?:" (regexp-opt org-done-keywords)
(defvar org-my-archive-expiry-days 1
"The number of days after which a completed task should be auto-archived.
This can be 0 for immediate, or a floating point value.")
(defconst org-my-ts-regexp "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]>\r\n]*?\\)[]>]"
"Regular expression for fast inactive time stamp matching.")
(defun org-my-closing-time ()
(let* ((state-regexp
(concat "- State \"\\(?:" (regexp-opt org-done-keywords)
@gregnewman
gregnewman / .hgrc
Created November 18, 2009 20:40 — forked from joshourisman/.hgrc
[ui]
username = Josh Ourisman <[email protected]>
[extensions]
fetch=
hgext.mq=
hgext.convert=
color=
rebase=
hgsubversion=~/.hg.d/hgsubversion/hgsubversion