Ben Chuanlong Du's Blog

It is never too late to learn.

Get Total Physical Memory in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Using os.sysconf

Notice that this ways only works on Linux but not on macOS or Windows.

Get physical memory in bytes.

Wirelss for Debian

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Depending on the wireless card on your machine, you might have to install a wireless card dirver manually. You can use the following command to check the type of the wireless …

Absolute or Relative Path for Executables

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

When you call shell commands in your code, a nature question to ask is whether you should the absolute or a relative path (command). Both ways have their advantages and disadvantages …

Install Dictionary Words for Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Words is a standard file on Unix and Unix-like operating systems, and is simply a newline-delimited list of dictionary words. It is used by Vim and spell-checking programs. The words file …

Tips on Gh

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://cli.github.com/

https://github.com/cli/cli

https://cli.github.com/manual/gh_secret

https://cli.github.com/manual/gh

https://github.com/topics/gh-extension

Hands on Python IO

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

StringIO