Skip to content

Instantly share code, notes, and snippets.

View h-a-t-zz's full-sized avatar

H.A.T h-a-t-zz

View GitHub Profile
@zbyte64
zbyte64 / sample.py
Created June 27, 2016 23:00
Docker py put archive example
import tarfile
import time
from io import BytesIO
admin_password = 'xxxxx'
#write password to file
pw_tarstream = BytesIO()
pw_tar = tarfile.TarFile(fileobj=pw_tarstream, mode='w')
file_data = admin_password.encode('utf8')