From 48cdb69efb904c14849b6e4ed803749065d993cc Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 27 Mar 2020 15:55:26 +0000 Subject: [PATCH] Publish habits as a webpage I think it might be a good idea to version control my habits, so that I can audit them as they change. I'm publishing these on my website, so that I can refer to them wherever I had internet. --- org/habits.org | 47 ++++++++++++++++++++++++++++++++++++++ website/default.nix | 3 +++ website/habits/default.nix | 13 +++++++++++ website/index.html | 3 +++ 4 files changed, 66 insertions(+) create mode 100644 org/habits.org create mode 100644 website/habits/default.nix diff --git a/org/habits.org b/org/habits.org new file mode 100644 index 000000000..6ed015f5f --- /dev/null +++ b/org/habits.org @@ -0,0 +1,47 @@ +* First of the year +** Write a post mortem for the previous year +* First of the month +** [20m] Create habit template in journal. +** [45m] Assess previous month's performance. +** [10m] Book massage for the month. +** [05m] Register for HotPodYoga classes. +** [10m] Plan one museum date in London. +** [20m] Plan each weekend for month. +* Payday +** Audit Monzo expenses +** Review "finances_2020" spreadsheet +** Transfer GBP to USD account +** Withdraw cash from ATM +* Morning +** Wake up at 7:00 +** Brush teeth +** Make bed +** 12 rounds of forward folds +** 12 rounds Pranayama +** Transcendental meditation +** Shower +* Evening +** Read for 30 minutes +** Journal daily progress +* Monday +** Jiu Jitsu +* Tuesday +** Work from 6PS +** Jiu Jitsu +* Wednesday +** Hot Yoga +** Shave +** Clean apartment sinks +* Thursday +* Friday +** Hot Yoga +* Saturday +** Vacuum +** Nap +* Sunday +** Jiu Jitsu +** Nap +** Shave +** Trim nails +** Take out trash +** Laundry diff --git a/website/default.nix b/website/default.nix index 2349b5cd9..474a6cd4b 100644 --- a/website/default.nix +++ b/website/default.nix @@ -9,5 +9,8 @@ pkgs.stdenv.mkDerivation { mkdir -p $out/goals cp -r ${briefcase.website.goals}/* $out/goals + + mkdir -p $out/habits + cp ${briefcase.website.habits} $out/habits/index.html ''; } diff --git a/website/habits/default.nix b/website/habits/default.nix new file mode 100644 index 000000000..e2655846e --- /dev/null +++ b/website/habits/default.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +pkgs.stdenv.mkDerivation { + name = "habits-webpage"; + src = ../../org; + buildInputs = []; + buildPhase = '' + ${pkgs.pandoc}/bin/pandoc $src/habits.org -o index.html + ''; + installPhase = '' + mv index.html $out + ''; +} diff --git a/website/index.html b/website/index.html index 47bba805e..6ad409bc1 100644 --- a/website/index.html +++ b/website/index.html @@ -13,6 +13,9 @@
  • Goals
  • +
  • + Habits +
  • Other