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
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> |
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
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 |
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
$ 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 |
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
__requires__ = [ | |
'cheroot', | |
'requests', | |
'pyopenssl', | |
'cryptography', | |
'trustme', | |
'pytest', | |
] | |
import functools |
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
__requires__ = [ | |
'cheroot', 'requests', 'cryptography', 'pytest', 'pyopenssl', 'trustme', | |
] | |
import functools | |
import ssl | |
import threading | |
import time | |
import OpenSSL.SSL |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'canary', |
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
__requires__ = ['jsonpickle', 'pymongo'] | |
import json | |
import datetime | |
import jsonpickle | |
import bson.tz_util | |
ob = datetime.datetime( |
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
__requires__ = ['jsonpickle', 'pymongo'] | |
import json | |
import datetime | |
import jsonpickle | |
import bson.tz_util | |
ob = datetime.datetime( |
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
jaraco.functools master $ tox -e py27 | |
py27 recreate: /Users/jaraco/code/main/jaraco.functools/.tox/py27 | |
py27 installdeps: setuptools>=31.0.1 | |
py27 develop-inst: /Users/jaraco/code/main/jaraco.functools | |
py27 installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,atomicwrites==1.2.1,attrs==18.2.0,backports.functools-lru-cache==1.5,backports.unittest-mock==1.4,configparser==3.7.1,contextlib2==0.5.5,docutils==0.14,enum34==1.1.6,flake8==3.6.0,funcsigs==1.0.2,importlib-metadata==0.8,jaraco.classes==2.0,-e git+gh://jaraco/jaraco.functools@d84738ac9f0fcc7a6f175a9873f63a70b87881c4#egg=jaraco.functools,mccabe==0.6.1,mock==2.0.0,more-itertools==5.0.0,pathlib2==2.3.3,pbr==5.1.1,pluggy==0.8.1,py==1.7.0,pycodesty |
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
draft $ cat test-pdb.py | |
import sys | |
def test_something(): | |
assert 'pdb' not in sys.modules() | |
draft $ pip-run -q pytest -- -m pytest test-pdb.py | |
================================================================================== test session starts ================================================================================== | |
platform darwin -- Python 3.7.2, pytest-4.1.1, py-1.7.0, pluggy-0.8.1 | |
rootdir: /Users/jaraco/draft, inifile: |