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
# encoding: utf8 | |
""" | |
Unambiguously define, from hex data, a sentinel Unicode string (&Ж中𐍆). | |
The string contains 1-, 2-, 3- and 4-byte Unicode characters. | |
Useful for finding encoding errors in editors and transfer systems! | |
""" | |
import sys | |
py2 = True if sys.version_info.major == 2 else False |
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 |
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 |
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 |
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 |