This file contains 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 socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
# Create the socket | |
sock = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) | |
# parsing args for using this as a cli .... dwalsh hates the idea so you can | |
# nuke this when folding into the mix |
This file contains 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
# -*- coding: utf-8 -*- | |
import requests | |
from io import BytesIO, SEEK_SET, SEEK_END | |
class ResponseStream(object): | |
def __init__(self, request_iterator): | |
self._bytes = BytesIO() | |
self._iterator = request_iterator |
This file contains 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
rm -v pub.pkcs8 test.sign test.txt.decrypted test.txt.encrypted |
This file contains 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
"""Noddy to dump out all your gists to Markdown | |
https://developer.github.com/v3/gists/ | |
Requires the requests library. | |
""" | |
import argparse | |
import hashlib |