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
| #!/bin/bash | |
| # | |
| ## -------------------------------=[ Info ]=--------------------------------- ## | |
| # | |
| # Generate letsencrypt cert on local server and scp to esxi target. | |
| # Designed and tested on Ubuntu 16.04LTS. | |
| # Assumes you have upnp control over local network. Tested with Ubiquiti USG. | |
| # | |
| # Dependencies: | |
| # miniupnpc (sudo apt install miniupnpc) |
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
| import hashlib as hasher | |
| import datetime as date | |
| # Define what a Snakecoin block is | |
| class Block: | |
| def __init__(self, index, timestamp, data, previous_hash): | |
| self.index = index | |
| self.timestamp = timestamp | |
| self.data = data | |
| self.previous_hash = previous_hash |