Cisco AnyConnect & Openconnect PlayBook

vpn-playbook Automated login for Cisco AnyConnect / Secure Client VPNs with TOTP two-factor auth: one-line scripts for macOS, Linux and Windows, plus a Dockerized OpenConnect that turns the VPN into a split-tunnel proxy for your LAN. ...

August 7, 2026 · 7 min · Vinkey

Conda Environment Settings

This article was written with the assistance of GitHub Copilot Anaconda or Miniconda? Conda is a package manager that runs on Linux, Windows and macOS, and it ships Python with it — which is why a single conda create -n new_pyenv python=3.12 is enough to get a clean virtual environment. There are two common distributions: Anaconda is large. The installer already bundles a lot of software and libraries, so you get everything in one shot. Miniconda is small. Whatever library an environment needs gets downloaded on demand. If your network is unreliable, Anaconda saves you the repeated downloads — although in mainland China the network problem is usually better solved by switching to a mirror. On an overseas connection (Hong Kong, in my case) I’d just take Miniconda: it installs fast, and when you inevitably get the paths wrong as a beginner, uninstalling and reinstalling is painless. That is exactly how I figured it out. ...

February 12, 2025 · Updated August 18, 2026 · 4 min · Vinkey

Compile OpenSeesPy on Windows using cmake

Clone source code git clone https://github.com/OpenSees/OpenSees.git cd OpenSees 1. Setup environment 1.1 install CMake and git # download cmake https://cmake.org/download/ 1.2 install visual studio 2019 default dictionary C:\Program Files (x86)\Microsoft Visual Studio\2019 https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Release&version=VS2019 1.3 install IntelOne Basic & HPC Toolkits default dictionary C:\Program Files (x86)\Intel\oneAPI https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7dff44ba-e3af-4448-841c-0d616c8da6e7/w_BaseKit_p_2024.1.0.595_offline.exe https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c95a3b26-fc45-496c-833b-df08b10297b9/w_HPCKit_p_2024.1.0.561_offline.exe 1.4 install python 3.11 you can create an env using conda conda create -n ops-compile python=3.11 conda activate ops-compile 1.5 install conan pip install "conan<2.0" 1.6 build MUMPS git clone https://github.com/OpenSees/mumps.git cd mumps mkdir build cd build call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 mod cmake .. -Darith=d -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -G Ninja cmake --build . --config Release --parallel 4 2. Building the OpenSees Applications and Python module Prepare cmake cd ..\.. mkdir build cd build conan install .. --build missing --settings compiler="Visual Studio" --settings compiler.runtime="MT" --settings compiler.version=16 call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 mod cmake .. -DBLA_STATIC=ON -DMKL_LINK=static -DMKL_INTERFACE_FULL=intel_lp64 -DMUMPS_DIR="..\..\mumps\build" 2.1 opensees cmake --build . --config Release --target OpenSees -j8 2.2 openseespy cmake --build . --config Release --target OpenSeesPy -j8 ### powershell| mv ./bin/OpenSeesPy.dll ./bin/opensees.pyd cp "C:\Program Files (x86)\Intel\oneAPI\compiler\2024.1\bin\libiomp5md.dll" ./bin/ Reference: https://github.com/OpenSees/OpenSees/blob/master/.github/workflows/build_cmake.yml ...

February 12, 2025 · 2 min · Vinkey