I hereby claim:
- I am jc2k on github.
- I am jc2k (https://keybase.io/jc2k) on keybase.
- I have a public key whose fingerprint is A262 1F7E 9964 9468 FBE8 1555 EB27 AB01 4FB6 76F4
To claim this, I am signing this object:
| #! /usr/bin/env python | |
| import os | |
| import tempfile | |
| import shutil | |
| import tarfile | |
| import sys | |
| import subprocess | |
| import optparse |
| import socket | |
| if not hasattr(socket, "inet_pton"): # pragma: no cover | |
| import ctypes | |
| WSAStringToAddressA = ctypes.windll.ws2_32.WSAStringToAddressA | |
| class sockaddr(ctypes.Structure): | |
| _fields_ = [ | |
| ("sa_family", ctypes.c_short), | |
| ("__pad1", ctypes.c_ushort), |
| from pip.req import InstallRequirement, RequirementSet, parse_requirements | |
| from pip.index import PackageFinder | |
| import tempfile | |
| import shutil | |
| build_dir = tempfile.mkdtemp() | |
| src_dir = tempfile.mkdtemp() | |
| download_dir = tempfile.mkdtemp() |
I hereby claim:
To claim this, I am signing this object:
| import requests | |
| import json | |
| issue = 104 | |
| branch = "BRANCH_TO_MERGE" | |
| username = "USERNAME" | |
| repo = "REPO" | |
| url = "https://api.github.com/repos/%(username)s/%(repo)s/pulls" % locals() |
| import logger | |
| log = logger.getLogger(__name__) | |
| def log_calls(fn): | |
| def inner(*args, **kwargs): | |
| f = inspect.currentframe() | |
| frame, filename, line, func_name, lines, index = inspect.getouterframes(f)[1] | |
| args = inspect.getargvalues(f) |
| import asyncio | |
| from systemd import journal | |
| class Journal(object): | |
| def __init__(self, unit): | |
| self.journal = journal.Reader() | |
| # self.journal.log_level(journal.LOG_INFO) | |
| self.journal.add_match(_SYSTEMD_UNIT=unit) |
| """ | |
| This demo expects the following directory structure: | |
| /bundle/ - empty directory | |
| /library/ | |
| /app1/ | |
| RANDOM FILES | |
| /app2/ | |
| RANDOM FILES | |
| /empty/ |
| # https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py | |
| # https://people.gnome.org/~federico/misc/memstats.py | |
| # http://brightbox.com/blog/2012/11/28/measuring-shared-ram-usage/ | |
| import itertools | |
| import os | |
| import operator | |
| SUPPORTED_SMAPS_BUCKETS = [ | |
| 'AnonHugePages', 'Anonymous', 'KernelPageSize', 'Locked', |
| from gevent.monkey import patch_all | |
| patch_all() | |
| import json | |
| import socket | |
| import struct | |
| import ssl | |
| import logging | |
| import uuid |