SSL Generator for: OpenVPN, nginx, MySQL, Apache, lighttpd, Regis, PostgreSQL, AWS, Exim, Tomcat, Oracle HTTP and few others… Open SSL generator at: https://ssl-config.mozilla.org When constructing OpenVPN on Debian, it was configured in a way that a single...
Use “echo” in docker When you use the RUN instruction with the echo command in a Dockerfile, the output from the echo command will be visible in the build logs, not in the container’s runtime logs. This means you’ll see the output when you...
# check if branch is clean git status -s # create branch with no history git checkout –orphan flattened git add -A git commit -m “flattened” # git status -s git diff main..flattened # !!! This will overwrite remote main branch !!! git push origin...
What is Vagrant and why we use it? Vagrant is a tool to automate your virtual machine setup. Use vagrant init file to write a blueprint for your virtual machines. Vagrant configuration file is written in Ruby programming language. Configure providers and provisioners,...
In Windows 10/11, you will need to set config path to openssl (openssl.cnf file). You can find this file in PHP directory. If you have installed gash shell you can run: php.exe -i | grep ‘Configuration File’ In my case, I have installed PHP under...
Keeping your passwords in a database in a plane format is a very bad idea. So why not to use hashing? Sure you can use hash, end it is totally OK to compare hash against hash. Especially if the password you want to store are not yours. Then this is the way to do it...
sudo apt update && sudo apt upgrade Install MySQL sudo apt install mysql-server mysql –version sudo /etc/init.d/mysql start If you want to secure MySQL by setting up the user pass, you can also run sudo mysql_secure_installation Allow remote access Allow...
Adding numbering to not sorted query. If your query is not sorted, adding a number to a query can be as easy as: SELECT ROW_NUMBER() OVER() AS num, This will work if you will not use ORDER BY clause in your query: If you add ORDER BY clause, things work differently....
Install NgineX start nginx Configure NgineX PHP CGI section like here: https://devwl.pl/nginx-php-on-windows-10/ Install PHP-CGI Navigate to PHP directory and run: php-cgi.exe -b 127.0.0.1:9999 Install MariaDB Run MariaDB Change default port number 3036 to 3333 at...