Skip to content

Instantly share code, notes, and snippets.

@StefRe
StefRe / vsbuildtools.md
Last active August 13, 2025 12:02
Install VS Build Tools on Windows 10 without admin permissions for usage with Cython
  1. Install VS Build Tools using PortableBuildTools
    https://github.com/Data-Oriented-House/PortableBuildTools

  2. for version 14.44.17.14 it creates devcmd.bat in the vs_BuildTools folder

    • copy this devcmd.bat to VC\vcvarsall.bat
    • in vcvarsall.bat create an environment variable LIBPATH and set it to the same value as LIB
      (query_vcvarsall in distuils msvc9compiler needs LIBPATH in addition to LIB)
  3. set VS140COMNTOOLS to the vs_BuildTools\VC\Tools folder
    (this makes sure vcvarsall.bat is being found by distutils)

@StefRe
StefRe / ssl_non_strict.py
Created May 18, 2026 15:47
Using Python >= 3.13 with incomplete corporate certificates
import ssl
import requests
from requests.adapters import HTTPAdapter
class SSLContextAdapter(HTTPAdapter):
def __init__(self, ssl_context=None, **kwargs):
self.ssl_context = ssl_context
super().__init__(**kwargs)
def init_poolmanager(self, *args, **kwargs):