Skip to content

Instantly share code, notes, and snippets.

View chforster's full-sized avatar

Christoph Forster chforster

  • Innsbruck, Austria
View GitHub Profile
@chforster
chforster / HttpsClient.java
Last active January 28, 2020 12:27
Java Class to check if a "jks" file is valid
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.Certificate;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
public class HttpsClient {
@chforster
chforster / gist:81fd4d78239cbd9b17780e41bc9030ff
Created August 13, 2019 13:36
declarative pipelines - sequential stages
# https://stackoverflow.com/questions/44870978/how-to-run-multiple-stages-on-the-same-node-with-declarative-jenkins-pipeline
pipeline {
agent none
stages {
stage("check code style") {
agent {
docker "code-style-check-image"
}
# set up screen sharing
screen -d -m -S dbgwindow
# join screen sharing on same account (both)
screen -x dbgwindow
See http://wiki.networksecuritytoolkit.org/index.php/HowTo_Share_A_Terminal_Session_Using_Screen#Sharing_A_Screen_Session_With_One_Account