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 | |
| """ | |
| Universal Opalstack API Proxy Script for Ansible. | |
| Usage: manage_opalstack.py <action> <resource> [key=value ...] | |
| """ | |
| import os | |
| import sys | |
| import json |
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
| # This code is under the MIT license. | |
| # Inspired by this StackOverflow question: | |
| # http://stackoverflow.com/questions/3295405/creating-django-objects-with-a-random-primary-key | |
| # Python 3.x version | |
| import struct | |
| from Crypto.Cipher import DES | |
| from django.db import models | |
| def base36encode(number): |
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 | |
| # Python3 script to renew HTTPS certificates, using acme script and Webfaction's API. | |
| # See: https://manikos.github.io/webfaction-letsencrypt-django (original version, plus docs) | |
| # See: https://gist.github.com/squatto/69d81ab4790f21a94828041c9295e8da (updated version) | |
| # See: https://github.com/Neilpang/acme.sh (acme script) | |
| # Usage: ./cert_renew.py domain.tld cert_name | |
| # Run this script as a cron job every day in order for the certs to be renewed when appropriate: |