Skip to content

Instantly share code, notes, and snippets.

import ctypes
from ctypes import c_void_p, c_int, c_char, c_ulong
lib_path = '/opt/homebrew/opt/openssl@3/lib/libcrypto.dylib'
lib = ctypes.cdll.LoadLibrary(lib_path)
MAX_BLOCK_LENGTH = 32
MAX_IV_LENGTH = 16
#!python3
import curses
import time
screen = curses.initscr()
screen.clear()
pad = curses.newpad(100, 100)
for line in range(1, 100):
pad.addstr(line - 1, 0, f'line {line}')
import os
import threading
locks = lock, rlock = threading.Lock(), threading.RLock()
with lock, rlock:
child = os.fork()
if child:
# run with:
# pip-run -- -m coverage run mod.py
__requires__ = ['pywin32-ctypes', 'coverage']
import multiprocessing
from win32ctypes.pywin32 import win32cred
from win32ctypes.pywin32 import pywintypes
$ create_and_cd_to_new_fig_repo --include path:google3/subdir -q
+ Traceback (most recent call last):
+ File "/usr/local/google/tmp/fig-e2e-ic_3wuy_/hg/mercurial/extensions.py", line 257, in _runuisetup
+ uisetup(ui)
+ File "/usr/local/google/_blaze_jaraco/f1c65bfcae194142dc7c58821f43f5ca/execroot/google3/blaze-out/k8-opt/bin/devtools/piper/hgfission/e2e/run_tests.runfiles/google3/third_party/py/google_hgext/__init__.py", line 223, in uisetup
+ loadfunc('commandsetup', ui, command)
+ File "/usr/local/google/_blaze_jaraco/f1c65bfcae194142dc7c58821f43f5ca/execroot/google3/blaze-out/k8-opt/bin/devtools/piper/hgfission/e2e/run_tests.runfiles/google3/third_party/py/google_hgext/__init__.py", line 203, in loadfunc
+ func = getattr(sub, funcname, None)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "<frozen importlib.util>", line 247, in __getattribute__
$ cat >> $HGRCPATH <<EOF
> [phases]
> publish = False
> [alias]
> qlog = log --template='{rev} - {node|short} {desc} ({phase})\n'
> [diff]
> git = 1
> unified = 0
> [extensions]
> EOF
$ pip-run pipdeptree jaraco.collections -- -m pipdeptree -p jaraco.collections
jaraco.collections==3.9.0
- jaraco.classes [required: Any, installed: 3.2.3]
- more-itertools [required: Any, installed: 9.1.0]
- jaraco.text [required: Any, installed: 3.11.1]
- autocommand [required: Any, installed: 2.2.2]
- inflect [required: Any, installed: 6.0.2]
- pydantic [required: >=1.9.1, installed: 1.10.7]
- typing-extensions [required: >=4.2.0, installed: 4.5.0]
- jaraco.context [required: >=4.1, installed: 4.3.0]
--- /mnt/vex/default_pkg/test-patch-submitted_citc-client_sh.runfiles/google3/devtools/piper/hgfission/e2e/tests/test-patch-submitted.t
+++ /tmp/vex/test_tmp/mercurial_env/test-patch-submitted.t#citc-client.err
@@ -245,19 +245,17 @@
adding manifests
adding file changes
added 4 changesets with 0 changes to 0 files (+4 heads)
- 8 new obsolescence markers
- obsoleted 3 changesets
- 4 new orphan changesets
- 2 new content-divergent changesets
Setting up linux-image-5.10.0-20-arm64 (5.10.158-2) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-20-arm64
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/ext4/ext4.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/f2fs/f2fs.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/isofs/isofs.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/jfs/jfs.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/reiserfs/reiserfs.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel/fs/udf/udf.ko': No space left on device
cp: error writing '/var/tmp/mkinitramfs_Jz0Nyt//usr/lib/modules/5.10.0-20-arm64/kernel
tox bugfix/2713-tox-in-tox-fail $ tox -- -k test_sequential_inserted_env_vars --pdb
.pkg: _optional_hooks> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
.pkg: get_requires_for_build_editable> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
.pkg: get_requires_for_build_wheel> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
.pkg: build_wheel> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
python: install_package> python -I -m pip install --force-reinstall --no-deps /Users/jaraco/code/tox-dev/tox/.tox/.tmp/package/4/tox-4.0.10.dev6+gde9a498e-py3-none-any.whl
python: commands[0]> pytest --color=yes -k test_sequential_inserted_env_vars --pdb
======================================================================= test session starts