Use pyVmomi EventHistoryCollector to get all the vCenter events
pyVmomi event manager returns only the last 1000 events. But EventHistoryCollector object’s ReadNextEvents()method can collect all the events.
pyVmomi event manager returns only the last 1000 events. But EventHistoryCollector object’s ReadNextEvents()method can collect all the events.
To fast deploy Python on Windows OS and without administrator privileges, we can use Powershell Install-Package to archive it.
submodule folders cannot be added into .gitignore file to untrack them from git status, we will use ignore=dirty to ignore it
__init__
file
When file A needs to import a function from the file B in another folder, and B is not in a module, we can use the sys.path variable.
One of the fastest way to convert Python json dict list to csv file with only 2 lines of code by pandas
Update 2019-12-28 Powershell 7 Select-String default highlighting
Use PyReadline and PtPython to have the powerful Readline in Python REPL on Windows OS.
Preview Jekyll blog locally on Windows with the Minimal Mistakes theme.
--%
)
Use Powershell stop-parsing (--%) to treat the remaining characters in the line as a literal.
As like pypi for Python, npm for Node.js, we also have Powershell Gallery and Nuget Gallery for Powershell.