LibreNMS & docker-compose

librenms

If you don’t know LibreNMS, it is a great monitoring tool with auto discovery, auto operating system detection, custom alert settings, extended application support and more. For details check out: https://www.librenms.org, https://github.com/librenms I was recently […]

Docker Won’t Start After Update

I updated docker on CentOS 8 from docker-ce-3:19.03.13-3.el8.x86_64 to docker-ce-3:20.10.1-3.el8.x86_64 and failed to start after update. Oh no, now what? 🙂 Let’s see more details: Turned out the fix was to remove trusted.xml, or better […]

Delete a Single Line From History

Did you ever wanted to remove a single line from your shell history? This is how you can easily do it: use: history -d line number to remove the line, for example history -d 431, […]

check free memory in FreeBSD

In case you’re coming from Linux world to FreeBSD first of all: Welcome! You might miss some commands, like free. Here is a very short tutorial for that. fetch https://raw.githubusercontent.com/ocochard/myscripts/master/FreeBSD/freebsd-memory.sh sh freebsd-memory.sh Then of course […]

Explaining BSD by Greg Lehey 

A great article from Greg Lehey about explaining BSD: https://www.freebsd.org/doc/en_US.ISO8859-1/articles/explaining-bsd/index.html

A little bit of nginx

Took me a moment to find out how to redirect a URL if the URL contains a certain word, in Nginx, here it is: location ~ \.xml$ { rewrite ^(.*)$ http://urltoberedirected.com/$1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header […]