blmayer@~ $ cat meta.html


About this site

This website is generated using some tricks I find interesting, for example, in the index page the tree is created using a shell command, namely tree. The funny part is that this code is actually part of the HTML file, and the command is run on the build process. For some commands I included it before the output, for fun.

It runs on my raspberry pi, which lives confortably in my living room. The setup is very simple for now, I'm just using docker-compose for running my server, deploys are not automatic for now, but will be in a near future. With all needed tools like, DDNS, firewall, docker-compose and the whole system, it uses just 100MiB of my precious RAM.

The main thing here is the template.sh script that injects shell commands directly into the file, so I can use simple programs to help creating the content at compile time. For now it it somewhat safe to use it in production, but I'm still working on its features, which is fine for this simple website that I have control.

This shell script also can be found on my github:

template.sh

I hope you find this interesting, if so take a look at the source code on my GitHub account.


Here's an example:

blmayer@~ $ fortune | cowsay -W 32

 ______________________________ 
< I'm definitely not in Omaha! >
 ------------------------------ 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||