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 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 Read more
Gitlab private workflow – vscode plugin
Simple snippet to start vscode with gitlab workflow plugin that uses a PRIVATE workflow instance. Passing GITLAB_WORKFLOW_INSTANCE_URL and GITLAB_WORKFLOW_TOKEN as environment variables you can workaround unpleasant internal settings:
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 Read more
Npm increment version
A simple snippet to increment your NPM version without any further step Prerelease 0.0.1-develop.1 > 0.0.1-develop.2 Patch 0.0.1 > 0.0.2 Minor 0.0.2 > 0.1.0 Major 0.1.0 > 1.0.0
File hash check – sha256sum
A brief guide to check if an hash is correct. Firstly generate the sha256sum of the file and store to a local file then check if the file is changed if the hash matches else
Reverse proxy gzip compression httpd – sveltekit
Here the configuration script for the httpd-vhosts.conf file of httpd apache server. In the following example connection from <name.domain> from port 443 are proxied via https and gzip compressed. Note: The receiver is a node.js server serving static html file Read more
Network manager CLI
Network manager CLI (nmcli) is a command-line tool for controlling NetworkManager and reporting network status. I personally use it to connect / disconnect pre-configured VPNs Here some useful commands Assign static ip
Simple Date Format not thread safe
The java library SimpleDateFormat (java.text.SimpleDateFormat) cannot be considered thread safe and the programmer should avoid the usage in a multi thread environment. The problem is based on the way it’s implemented To fix the problem there are 3 main ways: Read more