dado.work


one place for org-mode files

So I am on the constant lookout for a good way to organize my life with checklists. I've tried paper journals like my grandad, Apple notes, Google keep, pgp encrypted text files, even a custom view to my work's task manager that is a lot like org-mode in emacs...

Alas, I always come back to org-mode files. They are simple text files that I can paste into emails or commit messages without too many complaints. They look nice and are small. They are just great all around. The one problem I have is that they are littered everywhere; my local machine, my icloud drive, my work vm, every server I log into, the root of changes I'm working on. It's a mess.

So now I have a simple solition. My dado.work droplet has an ~/orgs directory. I can either ssh and edit them in terminal emacs (bleh) or I can use emacs tramp mode on whichever machine was nice enough to let me install emacs on.

ssh dado.work -t "emacs -nw ~/orgs/work.org"
emacs /ssh:dado.work:~/orgs/work.org

This works for git too! But I'll write about that tomorrow

First post

Added this blog to my work vm today... Hoping to share with others some interesting code. Maybe this will be the only post...

I guess this setup is an interesting choice. Nginx, serving directly from /var/www/html. Using let's encrypt for tls. For site generation I'm using python with an interesting tags library... sort of interesting. It's a functional way to write html...

So for example here's the code for my post function:

def post(title, date, *text):
    """Create a blog post with semantic HTML."""
    return t.article(
        t.header(
            t.h2(title),
            t.time(date, datetime=date)
        ),
        *text,
    )

And here is the code for the main page...

html5(
    t.head(
        t.meta(charset='utf-8'),
        t.title('dado.work'),
        t.style(style),
        ),
    t.body(
        t.h1('dado.work'),
        t.hr(),
        *posts,
        )
    )