This gists is a curated list of IT conferences. [PL] - marks the country where the conference takes place Feel free to contribute!
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
Some Jenkinsfile examples |
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
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |
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
// Requires: | |
// https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin | |
pipeline { | |
agent { | |
label "master" | |
} | |
parameters { | |
choice(name: 'ENV', choices: ['DEV', 'TEST'], description: 'Select environment to deploy to') | |
gitParameter name: 'TAG', type: 'PT_BRANCH_TAG', sortMode: 'DESCENDING_SMART', defaultValue: 'develop' |
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 | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8-alpine |
Commit Message Guidelines
Example of a properly formed commit message:
JIRA-123 Short (72 chars or less) summary
More details about the change, including functional and/or technical
explanation. Wrap it to 72 characters. The blank line separating the
summary from the body is critical (unless you omit the body entirely).
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
#!/bin/bash -e | |
set -x | |
DIFF=$(git diff master --name-only | grep java | xargs) | |
JAR_SRC="https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.32/checkstyle-8.32-all.jar" | |
JAR_PATH="checkstyle-8.32-all.jar" | |
if [ -z "$DIFF" ]; then | |
exit 0 | |
fi |
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
require('cross-fetch/polyfill'); | |
const fs = require('fs'); | |
const { Api } = require('endomondo-api-handler'); | |
const { DateTime } = require('luxon'); | |
const api = new Api(); | |
(async () => { | |
await api.login(LOGIN, PASSWORD); |
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
### Dependencies: | |
### pip3 install python-sonarqube-api | |
### | |
### Usage: | |
### SONARQUBE_API_TOKEN=123 SONARQUBE_API_URL=https://my.sonar.service.com/ python3 sonar.py <project-name> | |
import os | |
import sys | |
from distutils.util import strtobool |