Severity ➡️ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Facilities |
||||||||
kernel (0) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
user (1) | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
mail (2) | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
system (3) | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
security (4) | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
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
public class RandomLongGenerator { | |
private final long min; | |
private final long max; | |
private RandomIntGenerator(long min, long max) { | |
this.min = min; | |
this.max = max; | |
} | |
public static RandomLongGenerator between(long max, long min) { | |
return new RandomLongGenerator(min, max); | |
} |
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
public ResultType methodName ( | |
FirstArgType firstArg, | |
SecondArgType secondArg, | |
ThirdArgType thirdArg){ | |
LocalVariable localVariable | |
= method(firstArg,secondArg); | |
if(localVariable.isSomething( | |
thirdArg, SOME_CONSTANT)) { | |
doSomething(localVariable); | |
} |
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
public ResultType methodName ( | |
FirstArgType firstArg, | |
SecondArgType secondArg, | |
ThirdArgType thirdArg) | |
{ | |
LocalVariable localVariable | |
= method(firstArg,secondArg); | |
if(localVariable.isSomething( | |
thirdArg, SOME_CONSTANT)) | |
{ |
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
//this way better | |
class RedTruck implements Truck | |
//than | |
class RedTruckImpl implements ITruck |
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
#!groovy | |
//see https://github.com/thomas-poignant/jenkins-pipeline/blob/master/Jenkinsfile_declarative_pipeline for full example | |
pipeline | |
{ | |
/** | |
* agent : name of my jenkins slave | |
*/ | |
agent { label 'my_jenkins_slace'} | |
environment |
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
script | |
{ | |
//before using this command line you should approve execution on https://jenkins_url/scriptApproval/ | |
launchManually = currentBuild.rawBuild.getCause(hudson.model.Cause$UserIdCause) != null | |
if(launchManually) | |
{ | |
echo "Manually launch" | |
} | |
else | |
{ |
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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--no-check-certificate \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--no-parent \ | |
--domains yourdomain.com \ |
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
/* | |
Get ids of all invalid postgis polygon in the database | |
*/ | |
SELECT id | |
FROM polygones | |
WHERE st_isvalid(polygone)=FALSE | |
ORDER BY id; |
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
PROXY=http://$(curl -q http://pac.zscalertwo.net/XXX/proxypac-prod.pac 2>/dev/null | grep "PROXY" | grep -oP "\b(?:\d{1,3}\.){3}\d{1,3}\b:[0-9]*" | head -n 1) | |
echo "SETTING PROXY : $PROXY" | |
export HTTP_PROXY=$PROXY | |
export HTTPS_PROXY=$PROXY | |
export http_proxy=$PROXY | |
export https_proxy=$PROXY |
OlderNewer