Howto

GISCUS - You can now add comments to my blog

When I was researching some stuff for a blog post about Github Actions, I stumbled over the blog from Github user @nicolasiensen.
When I read the post, I saw that people were able to add comments with being logged into Github.
Something like this I have seen a long time ago, but this was so complicated, I just ignored it.

But now as I saw in his blog , it’s super ways, thanks to Giscus
The setup was super easy, the repo must be public, you need to add the all to your repo and enable discussions.
And the best is:

Docker cheat sheet

  • Stop all containers - docker stop $(docker ps -a -q)
  • Debug into running container - docker exec -it container_name /bin/bash
  • Debug into docker image - docker run --rm -it image_name /bin/bash
  • Remove all docker dontainers - docker rm -f $(docker ps -a -q)
  • remove all images you need to download everything again) - docker rmi -f $(docker images -q)
  • delete all docker network bridges - docker network prune

Building a raspberry pi streaming cam

the setup

This is how my setup looks like: Alt text

as webcam I use a Waveshare 10300 RPi Camera (E)
(bought it here, unpaid advertisement)

Install raspberry pi image

Download the images from the raspberry pi website
copy it to your sd card.
on the webpage they recommend to install the rpi-manager via sudo apt install rpi-imager, but for me it wasn’t working because of dependency problems.
So I installed it the classic way:

Pushing container to Docker hub

First build an docker container and run it afterwards so you see it with docker ps -a As an example, I use the container for the MagpiDownloader

docker build -f Dockerfile . -t mag-pi-downloader
docker run -v $(pwd)/issues:/app/issues/ mag-pi-downloader -f 131

After that is done, have a look, for all the docker container:

$ docker ps -a
CONTAINER ID   IMAGE               COMMAND                  CREATED              STATUS                          PORTS     NAMES
ea901f38e328   mag-pi-downloader   "/bin/sh /app/entryp…"   About a minute ago   Exited (0) About a minute ago             exciting_feistel

As you can see the newest has the container id ea901f38e328