This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.mongodb.com/download-center/bi-connector | |
| ./mongosqld --mongo-uri "mongodb://localhost:27017" --auth --mongo-username USERNAME --mongo-password PASSWORD --addr 0.0.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.adminCommand( { setParameter: 1, maxIndexBuildMemoryUsageMegabytes: 70000 } ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yourdomain.package; | |
| import java.io.IOException; | |
| import javax.ws.rs.container.ContainerRequestContext; | |
| import javax.ws.rs.container.ContainerResponseContext; | |
| import javax.ws.rs.container.ContainerResponseFilter; | |
| import javax.ws.rs.ext.Provider; | |
| @Provider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error = [ERROR] Could not open file '/var/log/mysql/error.log' for error logging: Permission denied | |
| Resolution | |
| Set an owner, a group and permissions to the correct one: | |
| chown mysql:adm /var/log/mysql/error.log | |
| chown mysql:adm /var/log/mysql | |
| chown root:syslog /var/log | |
| # chown root:root /var | |
| chmod 0640 /var/log/mysql/error.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -54.7998047, -25.8789944 | |
| -54.1406250, -26.0567829 | |
| -53.9428711, -26.9024769 | |
| -54.8657227, -27.5472415 | |
| -56.1181641, -28.3624017 | |
| -57.1508789, -29.5734571 | |
| -57.7880859, -30.2590672 | |
| -57.3706055, -30.4865508 | |
| -56.9091797, -30.4297296 | |
| -56.3598633, -30.7512778 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo docker run -d --name sonarqube -p 9000:9000 sonarqube | |
| ## se ja existir | |
| # docker ps | |
| # sudo docker restart ID | |
| com gradle 5.5.1 ou maior > | |
| alterar ~/.gradle/gradle.properties | |
| adicionar: systemProp.sonar.host.url=http://localhost:9000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.createUser( | |
| { | |
| user: "USR", | |
| pwd: "PASS", | |
| roles: [ | |
| { role: "read", db: "DB1" }, | |
| { role: "read", db: "DB2" }, | |
| { role: "read", db: "DB3" } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iconv -f iso-8859-1 -t utf-8 FILE_NAME > FILE_NAME_UTF8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps -ef | grep your_process_name | grep -v grep | awk '{print $2}' | xargs kill |