Skip to content

Instantly share code, notes, and snippets.

View praful-dhabekar's full-sized avatar
🎯
Focusing

Praful Dhabekar praful-dhabekar

🎯
Focusing
View GitHub Profile
@praful-dhabekar
praful-dhabekar / nginx-restart.bat
Last active September 11, 2020 05:30
Simple start, stop and restart script for NGINX on Windows
@ECHO OFF
call nginx-stop.bat
call nginx-start.bat
EXIT /b
@praful-dhabekar
praful-dhabekar / sonarqube-installation.md
Last active November 9, 2023 01:59
Sonarqube installation on CentOS

Step 1: Create the directory that will hold the SonarQube files:

sudo mkdir /opt/sonarqube

Step 2: Once the directory is created, update the permissions so that the sonarqube user will be able to read and write files in this directory:

sudo chown -R sonarqube:sonarqube /opt/sonarqube

Step 3: SonarQube releases are packaged in a zipped format, so install the unzip utility using your package manager so you can extract the distribution files:

sudo apt-get install unzip

Step 4: Next, we need to create a database and credentials that SonarQube will use. Log in to the MySQL server as the root user:

@praful-dhabekar
praful-dhabekar / RegisterActivity.java
Created December 20, 2017 11:18
RegisterActivity.java file from Android Login and Registration with PHP, MySQL and SQLite (https://www.androidhive.info)
package com.example.praf.apidemo;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;