Skip to content

Instantly share code, notes, and snippets.

start winver
Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseId
ver
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
systeminfo | findstr /C:"OS"
wmic os get Caption,CSDVersion /value
@futska
futska / procnetdev.py
Last active February 26, 2019 16:24 — forked from cnelson/procnetdev.py
Parses /proc/net/dev into a usable python datastructure
#!/usr/bin/python
"""
ATTRIBUTION:
procnetdev.py by cnelson is in the Public Domain and licensed under CC0 1.0 Universal
(source & full license: https://gist.github.com/cnelson/1658752)
"""
from datetime import datetime
@futska
futska / benchmark_lambda_itemgetter.py
Last active February 26, 2019 17:18 — forked from jdhao/benchmark_lambda_itemgetter.py
Benchmark result of lambda and itemgetter used in sort method in Python
"""
Description: In this script, I plot the benchmark result of lambda compared
to itemgetter in the operator package. We sort a list of tuple (which has two
elements) to benchmark. The list element number ranges from 100 to 1000000.
"""
# import numpy as np
import matplotlib
import matplotlib.pyplot as plt
colors = ["#e6194b",