Cisco AnyConnect & Openconnect PlayBook

https://github.com/ma-wenqian/vpn-playbook A complete guide and toolkit for automating login to Cisco AnyConnect / Cisco Secure Client VPNs that use TOTP-based two-factor authentication, plus a Dockerized OpenConnect setup for split-tunnel / proxy-chain use. Tags: HKU, Cisco AnyConnect, Cisco Secure Client, OpenConnect, 2FA, TOTP, VPN Guide Overview Most institutional VPNs built on Cisco AnyConnect / Cisco Secure Client (this repo was written against HKU’s vpn2fa.hku.hk, but the approach generalizes to any similarly-configured gateway) require two factors to log in: ...

August 7, 2026 · 7 min · Vinkey

Conda Environment Settings

This article was written with the assistance of GitHub Copilot Create a new environment To create a new conda environment, use the following command: conda create --name myenv Replace myenv with the name you want for your environment. You can also specify the Python version: conda create --name myenv python=3.8 Alternatively, you can create an environment at a specific path using the -p option: conda create -p /path/to/myenv Replace /path/to/myenv with your desired path. You can also specify the Python version: ...

February 12, 2025 · 2 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