The bmannconsulting.com website

New logs format, updated journal for the day

+9 -2
_config.yml
···
notes:
output: true
permalink: /:title/
+
logs:
+
output: true
+
permalink: /log/:slug/
-
#disqus:
-
# shortname: raghuveerdotnet
defaults:
- scope:
···
values:
layout: post
content-type: notes
+
- scope:
+
path: "_logs/*"
+
type: logs
+
values:
+
layout: post
+
content-type: logs
+2
_layouts/post.html
···
{%- include related.html -%}
<!-- /related -->
</main>
+
{%- else -%} {% comment %} This is a log {% endcomment %}
+
{%- include content.html -%}
{%- endif -%}
{%- include comments.html -%}
<!-- /comments -->
_logs/202102{DD}-0834{a}.md _logs/20210221-0834.md
-4
_logs/{X}.md
···
-
---
-
date: 2021-02-21T00:23:39.697-08:00
-
---
-
Notes are now Unix timestamped and placed in a [[Logs]] directory. Can now loop through those logs and auto generate Daily Logs.
_logs/{x}.md _logs/20210221-0827.md
-10
_notes/2021-02-21-08-14.md
···
-
---
-
date: 2021-02-21T00:14:37.363-08:00
-
---
-
Another notes test. Now into the notes directory with a filename that is a date stamp, if I got formatting correct. I can keep typing here past the 280 character count, it just lets me know what the limit actually is.
-
-
The two cheat sheets for date formatting are:
-
-
[[strftime]], used in [[Liquid]] in [[Jekyll]] and in [[Ruby]].
-
-
[Devhints Date & Time Formats](https://devhints.io/datetime), which also has [[Moment.js]] formats.
+16 -2
_notes/faasd.md
···
---
+
title: faasd
date: 2021-02-20T23:27:49.354-08:00
-
category:
+
tags:
- serverless
+
git: https://github.com/openfaas/faasd
---
-
faasd is part of [[OpenFaaS]]. I got it up and running on [[Digital Ocean]].
+
faasd is part of [[OpenFaaS]]. I got it mostly up and running on [[Digital Ocean]], using the [cloud-init setup article](https://blog.alexellis.io/deploy-serverless-faasd-with-cloud-init/).
+
+
> faasd is OpenFaaS reimagined, but without the cost and complexity of Kubernetes. It runs on a single host with very modest requirements, making it fast and easy to manage. Under the hood it uses containerd and Container Networking Interface (CNI) along with the same core OpenFaaS components from the main project.
+
+
Continued from the [Github README](https://github.com/openfaas/faasd):
+
+
* faasd is a static Golang binary
+
* uses the same core components and ecosystem of OpenFaaS
+
* uses containerd for its runtime and CNI for networking
+
* is multi-arch, so works on Intel x86_64 and ARM out the box
+
* can run almost any other stateful container through its docker-compose.yaml file
+
+
You can [Deploy faasd to your Raspberry Pi](https://blog.alexellis.io/faasd-for-lightweight-serverless/).
+19 -1
_notes/iawriter.md
···
---
-
title: IAWriter
+
title: iA Writer
+
date: 2021-02-20T23:49:21.983-08:00
+
link: https://ia.net/writer
+
tags:
+
- app
+
- iOS
+
- MacOS
+
- Markdown
+
- Micropub
---
+
+
What is iA Writer? A powerful Markdown editor app for iOS, MacOS, and Windows.
+
+
> It can be used without reading long manuals. Just open the app and start typing. Introduced with the original iA Writer in 2010, **Focus Mode** blinds everything out except the sentence or paragraph you are working on.| Write one sentence or paragraph at a time. When you said what you feel, edit. We have you covered there as well.
+
+
iA Writer has a [[Micropub]] publishing feature.
+
+
With [[IndieKit]] I can publish posts of type 'Article' to this site. Since the Micropub 'Note' post type doesn't have a title, I can't use it as a note unless I'm OK with date-stamp-as-title notes.
+
+
It also has [[Micro.blog]] support included.
-3
_notes/micro-blog.md
···
-
---
-
title: Micro.blog
-
---
-6
_posts/blog/2021-02-21-iawriter.md
···
-
---
-
date: 2021-02-20T23:49:21.983-08:00
-
title: iawriter
-
draft: true
-
---
-
iA Writer has a [[Micropub]] publishing feature. With [[IndieKit]] I can publish to this site.
-6
_posts/blog/2021-02-21-quill.md
···
-
---
-
date: 2021-02-20T23:37:27.418-08:00
-
title: Quill
-
category: micropub
-
---
-
[Quill](https://quill.p3k.io/) is a micropub client written in \[\[PHP\]\] by \[\[Aaron Parecki\]\], \[\[open source\]\] licensed under the \[\[Apache2 License\]\].
+9 -1
_posts/journal/2021-02-20-journal.md
···
I ended up buying the book [Serverless for everyone else](https://gumroad.com/l/serverless-for-everyone-else), which is an ebook by the creator of OpenFaas, [[Alex Ellis]].
-
I got as far as Terraform automating the creation of a Digital Ocean droplet, which is pretty great, but have some errors that may be DNS related. As part of getting things setup, also installed [[doctl]], the command line tool for Digital Ocean.
+
I got as far as Terraform automating the creation of a Digital Ocean droplet, which is pretty great, but have some errors that may be DNS related. As part of getting things setup, also installed [[doctl]], the command line tool for Digital Ocean.
+
+
## IndieKit Articles vs Notes
+
+
Well, everything is working, but need to figure a few things out. I used [[iA Writer]] to post to the site and it works! I've made Article post types into what I call Notes here, the main post type.
+
+
Posting from [[Quill]] as an Article isn't going to work, since it turns everything into HTML and escapes the square brackets in [[wikilinks]].
+
+
The Notes post type, I've created a new kind called [[Logs]]. They use the current date stamp as their filename, and I made a temporary [logs page](/logs/) to display them. So, I can post arbitarily long Notes posts. This could replace my manual Journal entries. Instead, I would auto-generate journal pages per day (not sure if this is possible), or maybe just show the last N days of logs on a main journal page.
+16
log.html
···
+
---
+
title: Log
+
layout: feed
+
content-type: eg
+
permalink: /logs/
+
---
+
+
{% assign sortednotes = site.logs | sort: 'date' | reverse %}
+
{%- for item in sortednotes limit: 20 -%}
+
+
<article>
+
{{ item.content | markdownify }}
+
<div><a href="{{ item.url }}">#</a></div>
+
</article>
+
+
{%- endfor -%}