Created
October 13, 2022 01:29
-
-
Save dasl-/161e8c4276a2df52c8ac47e77a6646e8 to your computer and use it in GitHub Desktop.
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 | |
import sys | |
all_data = b'' | |
while True: | |
data = sys.stdin.buffer.read(4096) | |
if not data: | |
break | |
sys.stdout.buffer.write(data) | |
all_data += data | |
while True: | |
sys.stdout.buffer.write(all_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment