SonarQube (formerly Sonar) is an open-source platform developed by SonarSource for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs. We will use the sonarqube docker image to run the sonarqube locally.
Blog
OWASP Top 10
The OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications. Access control enforces policy such that users cannot act outside of
OWASP Vulnerability Checks With Maven
The Open Web Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software. OWASP issues and maintains several recommendations regarding how to write secure code. One of the projects OWASP runs is the OWASP
Uncomplicated Firewall (ufw) on Ubuntu
The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user-friendly way to create an IPv4 or IPv6 host-based firewall. ufw by default is initially disabled. First, ufw needs to be enabled.
Delete commits history with git commands
Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this: # Check out to a temporary branch:git checkout –orphan
Apache Kafka Installation
Download the latest Kafka release and extract it: https://www.apache.org/dyn/closer.cgi?path=/kafka/2.6.0/kafka_2.13-2.6.0.tgz $ tar -xzf kafka_2.13-2.6.0.tgz $ cd kafka_2.13-2.6.0 NOTE: Your local environment must have Java 8+ installed. Run the following commands in order to start all services in the correct order: #
Change Document Root for Apache 2
On Ubuntu, by default, the Apache2 web server stores its documents in /var/www/html, which is typically located on the root file system with rest of the operating system. Sometimes, though, it’s helpful to move the document root to another location.
The “fatal: refusing to merge unrelated histories” Git error
The “fatal: refusing to merge unrelated histories” Git error occurs when two unrelated projects are merged (i.e., projects that are not aware of each other’s existence and have mismatching commit histories). The error is resolved by toggling the allow-unrelated-histories switch.
Cassandra Issue Connection error: ‘Unable to connect to any servers’
If you installed the apache cassandra 3.10 on ubuntu 20.4 which have the java 11 is default. You can not work with it as the apache cassandra is not worked with java 11. You need to downgrade to java 8
Codeigniter 3.x.x and PHP 7.x.x session lost while redirect
We have developed one web application with codeigniter 3.1.1 and php 5.6.After two years we upgrade server php version to 7.3.After upgrading this when we try to login it gets logged in and data is stored in session, but after