Skip to content

Instantly share code, notes, and snippets.

View jefrnc's full-sized avatar
🏠
Working from home

José Franco jefrnc

🏠
Working from home
View GitHub Profile
@jefrnc
jefrnc / git_set_httppostBuffer.sh
Created May 3, 2020 15:51
Git, fatal: The remote end hung up unexpectedly
git config --global http.postBuffer 524288000
@jefrnc
jefrnc / migrate.sh
Created February 13, 2020 13:23
Moving Git repository content to another repository preserving history
git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror
@jefrnc
jefrnc / fix.sh
Created February 13, 2020 13:19
Maven sonar plugin: trust self-signed certificate
#[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project data.model: Unable to execute SonarQube: Fail to get bootstrap index from server: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
keytool -import -v -trustcacerts -alias mySonarServer -file sonarServer.crt -keystore cacerts
#Where cacerts is the one from the JRE installation.
@jefrnc
jefrnc / script.sh
Created February 4, 2020 13:36
Jenkins - Install with Proxy Reverse
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
sudo systemctl start jenkins.service
systemctl status jenkins.service
sudo dnf install policycoreutils-devel setroubleshoot-server
sepolicy network -t http_port_t
sudo semanage port -a -t http_port_t -p tcp 8080 #(definimos rgla para el tcp/8080)
sudo dnf install nginx