Skip to content

Instantly share code, notes, and snippets.

__requires__ = [
'cheroot',
'requests',
'pyopenssl',
'cryptography',
'trustme',
'pytest',
]
import functools
$ az pipelines build list --organization jaraco --project pip-run
list index out of range
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.0.55/libexec/lib/python3.7/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.0.55/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute
raise ex
File "/usr/local/Cellar/azure-cli/2.0.55/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 386, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/Cellar/azure-cli/2.0.55/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 379, in _run_job
DEBUG: Command arguments: ['pipelines', 'build', 'list', '--organization', 'jaraco', '--project', 'pip-run', '--debug']
DEBUG: Event: Cli.PreExecute []
DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x10e87bbf8>, <function OutputProducer.on_global_arguments at 0x10e9511e0>, <function CLIQuery.on_global_arguments at 0x10e976840>]
DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'lab', 'maps', 'monitor', 'network', 'policyinsights', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'storage', 'vm']
DEBU
sysctl $ cat Dockerfile
from ubuntu:bionic
RUN apt update > /dev/null 2>&1
RUN apt install -y g++ vim > /dev/null 2>&1
COPY machineInfo.cpp .
RUN echo | g++ -dM -E - | grep linux
RUN g++ machineInfo.cpp
sysctl $ cat machineInfo.cpp
#include <sys/sysctl.h>
__requires__ = ['pymongo']
__index_url__ = 'https://m.devpi.net/jaraco/dev'
import datetime
import decimal
import pymongo
import bson.codec_options as opts
from bson import decimal128
__requires__ = ['pymongo']
__index_url__ = 'https://m.devpi.net/jaraco/dev'
import datetime
import decimal
import pymongo
import bson.codec_options as opts
from bson import decimal128
import logging
import cherrypy.lib.cpstats
class CherootStatistics(cherrypy.process.plugins.SimplePlugin):
def main(self):
self.bus.log('Enabling Cheroot statistics')
keys = (
key
# coding: future_fstrings
__requires__ = [
'cherrypy!=18.1.0',
'future-fstrings',
'backports.functools_lru_cache; python_version=="2.7"',
]
import logging
try:
import operator
import itertools
def pairwise(iterable):
orig, copy = itertools.tee(iterable)
next(copy)
return zip(orig, copy)
skeleton master $ git merge --no-commit upstream/master
Auto-merging tox.ini
Auto-merging skeleton.md
CONFLICT (content): Merge conflict in skeleton.md
Auto-merging setup.cfg
CONFLICT (content): Merge conflict in setup.cfg
Auto-merging pytest.ini
CONFLICT (content): Merge conflict in pytest.ini
CONFLICT (modify/delete): pin-pip.py deleted in upstream/master and modified in HEAD. Version HEAD of pin-pip.py left in tree.
Auto-merging docs/conf.py