./app.py
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 | |
| """Get external ip using DNS, HTTP, STUN protocols. | |
| Print the first result (the fastest). | |
| Usage: | |
| $ python3 -m external_ip [--quiet] | |
| Optional dependencies: | |
| $ python3 -m pip install aidns pynat pystun3 |
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 | |
| """ | |
| https://www.youtube.com/watch?v=BleOgPhsdfc | |
| """ | |
| from dataclasses import dataclass | |
| @dataclass | |
| class RedLightViolation: | |
| """...""" |
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
| /*** Native messaging "ping_pong" example in C. | |
| * | |
| * It is reimplementation of the corresponding Python example from | |
| * https://github.com/mdn/webextensions-examples/tree/master/native-messaging | |
| * | |
| * # Python 3.x version | |
| * # Read a message from stdin and decode it. | |
| * def getMessage(): | |
| * rawLength = sys.stdin.buffer.read(4) | |
| * if len(rawLength) == 0: |
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
| /stats.json |
OlderNewer