The a as b operation may look like a type casting or type conversion operation, but it is not.
a as b actually performs a
type assertion.
No type conversion or "casting" happens.
| from networkchuck | |
| ``` | |
| # Show macOS download history | |
| sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | |
| ``` |
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMWvdSlFXXWyvEdYpAzz6yTCAjFmi17bytwy0O4YPkKk [email protected] |
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYXG7ZZ/Jx5N4YmsHOTH0KcT0q0ppxpbsEY/vd+o6KY [email protected] |
The a as b operation may look like a type casting or type conversion operation, but it is not.
a as b actually performs a
type assertion.
No type conversion or "casting" happens.
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| from pprint import pprint | |
| import calendar | |
| from enum import Enum, IntEnum, Flag, IntFlag | |
| pp = pprint | |
| # source: https://levelup.gitconnected.com/python-tricks-i-can-not-live-without-87ae6aff3af8 | |
| def sep() -> None: | |
| print("=======================================") |
tl;dr of: https://www.kenmoini.com/blog/quick-n-dirty-adding-disks-to-proxmox/
lsblkcfdisk /dev/sdapvcreate /dev/sda1pve): vgextend pve /dev/sda1vgs.pip install watchdog may fail to build on newer versions of macos because the local python is configured to build for arm64.
Either install python from the packages provided by python.org, or set the ARCHFLAG env variable by running:
export ARCHFLAGS="-arch x86_64"
pip install watchdog