Apache – check number of connections
#netstat -nt | grep :80 | wc -l # netstat -plan|grep :80 | wc -l # netstat -an | grep ‘EST’ | wc -l # netstat -ant | grep ESTABLISHED | grep :80 | wc -l # ps -A | Read More
Build High Availability Network
#netstat -nt | grep :80 | wc -l # netstat -plan|grep :80 | wc -l # netstat -an | grep ‘EST’ | wc -l # netstat -ant | grep ESTABLISHED | grep :80 | wc -l # ps -A | Read More
An application which allows to create unlimited mailboxes and provide a simple web interface http://qamail.ala.se/
Create a JSON object JSONObject requestParams = new JSONObject(); requestParams.put(“AccountId”, accountId); requestParams.put(“Amount”, amount); //Define baseURI RestAssured.baseURI = apiUrl; RestAssured.useRelaxedHTTPSValidation(); RequestSpecification request = RestAssured.given(); //Add token to request request.header(“Authorization”, token); // Add a header stating the Request body is a JSON Read More
Use queryParam to create GET reqeust RestAssured.baseURI = apiUrl; RestAssured.useRelaxedHTTPSValidation(); RequestSpecification request = RestAssured.given(); //Add token to request request.header(“Authorization”, token); // Add a header stating the Request body is a JSON request.header(“Content-Type”, “application/json”); // Add trxID to query param request.queryParam(“trxId”, Read More
Get autoincremental value SHOW TABLE STATUS FROM `DatabaseName` WHERE `name` LIKE ‘TableName’ ; Query from information schema SELECT `AUTO_INCREMENT` FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ‘DatabaseName’ AND TABLE_NAME = ‘TableName’; Change auto_incremental value ALTER TABLE table AUTO_INCREMENT = n;
Install plugins for GDPR compliance GDPR Tools BPS – disable IP log Cookie Notice for GDPR
Guitar lessons The EASIEST Fingerpicking Pattern [PLAY in 1 Minute]
To convert string to number you can use 1.parseInt 2.parseFloat 3.use + operator: var x = “12”; var y = +x; // y: became number
List of command for hadoop List of files and directories hadoop fs -ls / List of files under user hadoop fs -ls /user Put file to hadoop hadoop fs -put text.txt /user/training/text.txt View file content hadoop fs -cat /user/training/text.txt Remove Read More
Install application ng new my-app ng new my-app –dry-run ng new my-app –skip-install ng new –help Options ng new my-app –skip-install –style scss –prefix ma –skip-git –skip-test –routing ng lint –help