1. Envsubst

    Envsubst

    Big templating engines like Jinja2 for Python are really useful tools. But sometimes, you just need to do a little templating in a shell script, to compose a config file, for example.

    Envsubst is a simple templating machine for the shell. It replaces environment variables in files. A simple …

    read more
  2. Help! This is not this!

    Help! This is not this!

    Here’s the story of me, this, and JavaScript. You may think about JavaScript what you may (I’m yet unsure if I like it or not[1]), but it is one of the most useful programming languages you can have in your toolbox. So …

    read more
  3. Squash the first two commits with Git

    Squash the first two commits with Git

    With a normal interactive rebase, that cannot be done, you cannot include the first commit. That is, if you have three commits and wanna do a

    git rebase -i HEAD~3

    , Git won’t allow that. It will answer with something like

    fatal …
    read more
  4. Asciidoc passthrough problem with Pandoc

    Asciidoc passthrough problem with Pandoc

    The idea

    Use a passthrough to pass an includepdf instruction to LaTeX, so you can have full-page images in your text, using the LaTeX pdfpages package. The passthrough in the Asciidoc document looks like this:

    ++++
    \includepdf{pics/eintagsfliegen-fullpage.pdf}
    ++++

    The file is first converted to …

    read more
  5. Spell-checking Asciidoc

    Spell-checking Asciidoc

    Can be done on the command line with aspell. Iff you arr Tschörmann, be sure to install your language pack. On Ubuntu, this is done with:

    sudo apt install aspell-de

    There are also plugins for Atom and VS Code, but I didn’t investigate further, as I am …

    read more

links

social