View convert-letsencrypt-java-keystore.sh
This file contains 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
#!/usr/bin/env bash | |
# A codificiation of the steps outlined at | |
# https://ordina-jworks.github.io/security/2019/08/14/Using-Lets-Encrypt-Certificates-In-Java.html | |
# that I found relevant in getting my LE certs to work with our Confluence install. | |
# That page, and other sources, suggest that you might also have to import ALL the LE intermediate | |
# certs into the default Confluence / Java keystore ($JRE_HOME/lib/security/cacerts) | |
NOTIFY=webmaster@example.com | |
DOMAIN=www.example.com |
View import-letsencrypt-java.sh
This file contains 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 | |
# A codificiation of the steps outlined at | |
# https://ordina-jworks.github.io/security/2019/08/14/Using-Lets-Encrypt-Certificates-In-Java.html | |
CERT_EXT=der | |
# JAVA_HOME can be passed as argument if not set | |
if [[ -z ${JAVA_HOME+x} ]] || [[ ! -d ${JAVA_HOME} ]]; then | |
JAVA_HOME=${1} | |
fi |
View bitbucket_approve_pull.py
This file contains 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
#! /usr/bin/env python3 | |
"""Approve pull requests on BitBucket Server. | |
If you are trying to approve pull requests on BitBucket from external/3rd- | |
party tools (like Jenkins) there may be plugins available to do the job | |
automatically - if you're lucky. The `Bitbucket Approve Plugin`_ seems to be | |
one such plugin. | |
Unfortunately, it's only for the *CLOUD*-hosted version of Bitbucket. The | |
self-hosted version, Bitbucket Server (formerly known as Stash) uses a |
View test_count_invers.py
This file contains 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
""" | |
Test cases for the 'counting inversions' programming assignment, the first | |
assignment of the Coursera course "Algorithms: Design and Analysis, Part I". | |
This module incorporates most of the tests found in the course forum, in | |
this thread: | |
https://class.coursera.org/algo-009/forum/thread?thread_id=2 | |
To help check my work, I modified my merge_sort implementation to return |