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 | |
| # SPDX-License-Identifier: MIT-0 | |
| """ | |
| This script prints a line that can be added to the ~/.ssh/known_hosts file. | |
| The required information (github server IPs and RSA key + fingerprint) | |
| is queried from the github servers. | |
| """ | |
| import base64 | |
| import hashlib | |
| 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
| // SPDX-License-Identifier: MIT-0 | |
| package whatever | |
| import ( | |
| "fmt" | |
| "sync/atomic" | |
| ) | |
| // AtomicBool must be initialised to 0 or 1 to function properly. |