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
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# Forked by Pavlo Shchelokovskyy (pshchelo) - pshchelo.bitbucket.org | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { |
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
#!/usr/bin/env python3 | |
# Convert certbot private_key.json to Abstract Syntax Notation One (ASN.1) | |
# Usage: python3 jwk2asn1.py private_key.json > private_key.asn1 | |
# openssl asn1parse -genconf private_key.asn1 -noout -out private_key.der | |
# openssl rsa -in private_key.der -inform der > private_key.pem | |
# | |
# Originally developed and published by Jon Lundy under the MIT License, 2015 | |
# Updated to Python 3.6 by Anton Ivanov, Agorist International Conspiracy, 2020 | |
# | |
from sys import argv |
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
#!/usr/bin/env python3 | |
# Usage: openssl rsa -in account_key.pem -text -noout | python3 rsapem2json.py | |
# Will convert the RSA PEM private key to the Letsencrypt/Certbot | |
# private_key.json file. | |
# | |
# From: | |
# -----BEGIN RSA PRIVATE KEY----- | |
# MIIJJwsdAyjCseEAtNsljpkjhk9143w//jVdsfWsdf9sffLgdsf+sefdfsgE54km | |
# ... | |
# |