Skip to content

Instantly share code, notes, and snippets.

View mimre25's full-sized avatar

Martin Imre mimre25

View GitHub Profile
@mimre25
mimre25 / tox -rvv output
Created May 5, 2024 14:31
tox -rvv output
(tox) ➜ tox git:(main) ✗ tox -rvv
fix: 369 W remove tox env folder /home/martin/workspace/tox/.tox/fix [tox/tox_env/api.py:323]
fix: 642 I find interpreter for spec PythonSpec(path=/home/martin/micromamba/envs/tox/bin/python3.12) [virtualenv/discovery/builtin.py:72]
fix: 643 I proposed PythonInfo(spec=CPython3.12.3.final.0-64, exe=/home/martin/micromamba/envs/tox/bin/python3.12, platform=linux, version='3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:79]
fix: 643 D accepted PythonInfo(spec=CPython3.12.3.final.0-64, exe=/home/martin/micromamba/envs/tox/bin/python3.12, platform=linux, version='3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:81]
fix: 645 D filesystem is case-sensitive [virtualenv/info.py:25]
fix: 703 I create virtual environment via CPython3Posix(dest=/home/martin/workspace/tox/.tox/fix, clear=False, no_vcs_igno
@mimre25
mimre25 / migrate_conda_env_to_micromamba.sh
Created January 22, 2024 12:49
Little bash script to migrate all conda envs to micromamba envs
#!/bin/bash
conda env list | sed -e 's/ */,/g' > __tmp.txt
eval "$(micromamba shell hook --shell zsh)"
micromamba activate
while read _env;
do
@mimre25
mimre25 / session.py
Last active March 7, 2025 13:17
PGBouncer, SQLAlchemy, Asyncpg, Transaciton Isolation
import contextlib
from typing import AsyncIterator
from sqlalchemy import event
from sqlalchemy.engine import AdaptedConnection # type: ignore
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.pool import _ConnectionRecord # type: ignore
CONNECTION_URL = ...
@mimre25
mimre25 / make VERBOSE=1
Created February 8, 2018 18:09
Gist contains last lines of CMake variables and then make VERBOSE=1
- PROJECT_BINARY_DIR=/home/mimre/workspace/tmp/cmake-problem/bin/subdir
-- PROJECT_DIRS=/home/mimre/workspace/tmp/cmake-problem;/home/mimre/workspace/tmp/cmake-problem/subdir/;/home/mimre/workspace/tmp/cmake-problem/subdir/files
-- PROJECT_NAME=cmake_problem
-- PROJECT_SOURCE_DIR=/home/mimre/workspace/tmp/cmake-problem/subdir
-- RUN_CONFIGURE=ON
-- Triangle_CONFIG=/usr/local/lib/cmake/Triangle/TriangleConfig.cmake
-- Triangle_CONSIDERED_CONFIGS=/usr/local/lib/cmake/Triangle/TriangleConfig.cmake
-- Triangle_CONSIDERED_VERSIONS=1.7.0
-- Triangle_DIR=/usr/local/lib/cmake/Triangle
-- Triangle_FOUND=1