Skip to content

Instantly share code, notes, and snippets.

@ArnaudLec
ArnaudLec / deploy-sonar-plugin.sh
Created October 31, 2025 07:55
Simple scripts which handles the deployment of a SonarQube plugin
#!/bin/bash
SONAR_DIR=/opt/sonar
SONAR_PLUGINS_DIR=$SONAR_DIR/extensions/plugins
SONAR_LOG_DIR=$SONAR_DIR/logs
SONAR_USR=sonar
SONAR_GRP=nogroup
#DOC : Exits if an error occured during with the last command
function assert {
@ArnaudLec
ArnaudLec / 01-proxy
Last active October 29, 2021 08:25
Configuration APT avec proxy dynamique (à mettre dans le dossier /etc/apt/apt.conf.d)
Acquire::http::Proxy-Auto-Detect "/etc/apt/detect_proxy.sh";
@ArnaudLec
ArnaudLec / detect_proxy.sh
Last active October 29, 2021 08:26
Script d'autodétection d'un proxy (utile pour apt, à mettre dans le dossier /etc/apt)
#!/bin/bash
# detect_proxy.sh / chmod a+x
# fichier de détection si le proxy indiqué est disponible
# s'il est disponible, renvoie sur la sortie standard la configuration avec proxy
# sinon, renvoi DIRECT
proxy_address=
proxy_port=8080
nc -zw1 $proxy_address $proxy_port && echo http://$proxy_address:$proxy_port/ || echo DIRECT
#!/bin/bash
if [ $# -ne 1 ]
then
echo " "
echo " "
echo "Usage : findclass.sh <Class Name/Part of ClassName >"
echo " "
exit -1
fi
#!/bin/bash
# WSL 'git' wrapper, save as /usr/local/bin/git and chmod a+x
if [ "${PWD:0:7}" = "/mnt/c/" ]; then
/mnt/c/Program\ Files/Git/bin/git.exe "$@"
else
/usr/bin/git "$@"
fi
[2019-04-12T09:24:59.437Z] [INFO] Sensor FindBugs Sensor [findbugs]
[2019-04-12T09:25:00.002Z] [INFO] Loading findbugs plugin: /home/[redacted]/jenkins_slave/workspace/[redacted]/[redacted]/sources/[redacted]/target/sonar/findbugs/fb-contrib.jar
[2019-04-12T09:25:00.002Z] [INFO] Loading findbugs plugin: /home/[redacted]/jenkins_slave/workspace/[redacted]/[redacted]/sources/[redacted]/target/sonar/findbugs/findsecbugs-plugin.jar
[2019-04-12T09:25:00.002Z] [INFO] Findbugs output report: /home/[redacted]/jenkins_slave/workspace/[redacted]/[redacted]/sources/[redacted]/target/sonar/findbugs-result.xml
[2019-04-12T09:25:00.265Z] [INFO] Use filter-file: /home/[redacted]/jenkins_slave/workspace/[redacted]/[redacted]/sources/Tools/sonar/findbugs-exclusions.xml
[2019-04-12T09:25:18.328Z] [INFO] ------------------------------------------------------------------------
[2019-04-12T09:25:18.328Z] [INFO] Reactor Summary for [redacted] 12.3.0-SNAPSHOT:
[2019-04-12T09:25:18.328Z] [INFO]
[2019-04-12T09:25:18.328Z] [INFO] [re