Node multithread

Intro Node.js is primarily single-threaded due to its event-driven, non-blocking I/O architecture, which means it handles tasks asynchronously on a single thread, particularly for I/O operations. However, for CPU-intensive tasks or tasks that benefit from concurrency (like computations), Node.js does have a way to leverage multiple threads. An idea to Read more…

Kong timeout management

Kong has 3 different timeout connect_timeout: from kong to the micro. Once is connected then the connection is managed by keep-alive HTTP 1/1 open HTTP/2 can be used any reasonable value under 30000 ms read_timeout: end to end flow (inbound > outbound > inbound). This is the MOST important timeout. if kong closes the connection before the application then Read more…

Flameshot

Flameshot is a powerful and simple-to-use screenshot software Here a mini guide to install and setup in ubuntu 24.04 LTS, XDG wayland Install Flameshot on startup go to startup application select flameshot and press edit change the command to sh -c — “flameshot” Keyboard shortcuts go to keyboard menu view Read more…

Setup OpenVPN in 10 minutes

Few steps to setup in 10 minutes a OpenVPN server inside a Docker in your VPS. Requirements Docker Docker compose Docker compose setup note: static-network is optional, just in case you would like to access with static IP addresses to other containers Then Notes if the openvpn docker server is Read more…

nc – netcat

The nc (or netcat) utility is used for just about anything under the sun involving TCP, UDP, or UNIX-domain sockets. It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports, do port scanning, and deal with both IPv4 and IPv6. Unlike telnet(1), ncscripts nicely, and Read more…

Deck usage

Deck is a program that helps to upload and sync different kong configuration via command line Install Curl installation. Edit properly the version tag. Make sure that the machine you install deck reaches correctly kong server Usage Installation check Dump kong configuration In the same directory will be created a Read more…