Dorinel Filip How-To's

My own (but public) repostory of tutorials

Blog About

How to setup 802.11x authenticated WAN using OpenWRT?

This tutorial explains how to configure OpenWRT to authentificate the WAN connection using 802.11x EAP-TLS.

Read More

How to make a docker-compose application to autostart as a service?

In this tutorial we explain how to enable on-boot autostart for a docker-compose application using systemd on Ubuntu.

Read More

How to change the MAC address of an interface on MacOS?

This tutorial explains how to change the MAC address/physical adress of an network interface on MacOS.

Read More

How to run NGINX-Proxy-Manager using Docker Swarm?

NGINX-Proxy-Manager is a very simple method to set a NGINX Ingress. In this tutorial we present a very simple way to run it on your for your Docker Swarm cluster.

Read More

How to print a maze-looking pattern using C

Here is how you can print a random maze-looking pattern using C.

Read More

How to make a socket address reuseable using setsockopt()?

Did you just get an “address already in use” error while calling bind()?

Use the following snippet to get rid of it:

int enable = 1;
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(int)) < 0)
    perror("setsockopt(SO_REUSEADDR) failed");
Read More