1. 3

    https://theputnams.net/mike/

    In typical nerd blog fashion, I’ve focused primarily on the construction of the site and abandoned the content.

    But enough about the content, let me tell you about the construction! XD

    It’s effectively a static site generator, in 10 lines of bash(including comments).

    • “posts” are snippets of HTML you would normally place within the <body> tag, all sitting in their own directory, named with a naturally sorted reverse date.
    • top.template contains the HTML <html><head><body> + a set of URLs common to all pages.
    • bottom.template contains the closing </body></html> tags.
    • The below bash script assembles the resulting complete HTML pages.
    • From there the static site is host-able anywhere.
    #!/bin/bash
    cd posts/ #invoked from staging/
    #assemble index from HTML chunks
    html="<ul>"
    for post in $(find * | sort -r);do html=$html"<li><a href=\"$post.htm\">$post</a></li>"; done
    html=$html"</ul>"
    printf '%s\n' "$html" | cat ../top.template - ../bot.template > ../../index.html
    #assemble all the blog pages from all the chunks
    for post in $(find * | sort -r);do cat ../top.template $post ../bot.template > ../../$post.htm; done
    

    This approach couldn’t be much more past/future proof (except maybe writing plain text files and just hosting them as text/plain). This makes me happy.

    1. 2

      Jenkins, TravisCI, AWS CodePipeline/CodeBuild, plain old git hooks + bash.

      1. 3

        An attempt at clustering things a bit.

        • Emacs, mg, vim
        • Firefox (with uBlock Origin, uMatrix, Cookie AutoDelete)
        • FreeBSD, macOS, Windows 10
        • SSH, PuTTY
        • Alacritty, iTerm2
        • cwm (Calm Window Manager)
        • Directory Opus, PDF X-Change Editor, Evince/zathura
        • Outlook, MS Teams
        • zsh and a plethora of command line tools (coreutils, textutils, awk, grep, and many more)

        I know I use these all the time. There might be more. I’m not even counting the web apps I have to use.

        1. 2

          I loved cwm for a time. Until I was defeated by laziness and now just run vanilla/stock everything.

        1. 2

          Ubuntu LTS (default desktop), Chrome, XTerm, Bash, Tmux, Vim, OpenSSH, GEdit, Flameshot, Slack, Zoom

            1. 1

              Hmm… my lobste.rs inexperience is showing.

              I hadn’t realized that all tags are by default visible. Having tags for each city on the globe would not work well.

              :/

              1. 1

                Currently:

                • Twitter (cultivated)
                • Lobste.rs
                • A slack team that consists of other techies in my geography
                • Freenode
                • Feedly (cultivated)

                And that’s it! No extra-curricular tv, radio, magazine, newspaper stuff.

                p.s. One additional thing that doesn’t neatly fit into “visit everyday” is an Android app called Scanner Radio that alerts on sudden high-listener counts. When I receive one of these I quickly search Twitter/Google news and get as-it-happens sort of news.

                1. 1

                  A keystone project in the mainstream awareness of PHP as a language.

                  1. 2

                    Ansible + ec2 deployment stuff.

                    1. 3

                      In the off hours, noodling around with Google Calendar API via Python. Flipping through a Flask library book. Should probably finish some simple hobby Android stuff I’ve been sitting on.

                      1. 1

                        “or perl itself…”

                        1. 2

                          Not surprised. Perl 5 uses heuristics to parse some of it’s own syntax.

                          1. 2

                            Or, more to the point, it’s a generic programming language that is designed to be able to call any function, including many system calls.

                          1. 3

                            Because they found security vulnerabilities?

                            1. 3

                              People aren’t scum if they break a barrier. They are curious and mistakenly devious.