picostitch
crafting (and) JavaScript

Tidbits tagged with #linux (11)

#linux

Setup HTTPS with letsencrypt for a new server

The following does NOT need to connect the server, which is another way, where the server provides a secret via http, and the letsencrypt server checks it. But the drawback of that is that you need to run the webserver and later reconfigure it, since this is only needed for the initial cert afaik. So I went the other way. Will see how the renewal works, but I think it should work.
Continue reading →

#docker

Free Docker Disk Space

If you are running out of disk space on your docker host, you can free up some space by removing unused docker images, containers, and volumes. I am running docker-compose and always watch the logs, since the service is not high scale yet, so the log files fill up. This means from time to time I need to free some disk space.
Continue reading →

#linux

Execute install.sh file

There I have it again, a install.sh file on a linux and I don't remember how execute it. I tried ./install.sh, error, . ./install.sh another error, it also never felt right the way I did it.
Continue reading →

#linux

Diff of the Files in Two Directories

diff --recursive <dir1> <dir2> to diff the files and their contents in two directories I just needed to do some golden master tests after updating a dependency